VS Code preview Full workbench mockup using this variant's colors and tokenColors.
fetchUser.tssrc/components index.ts README.md
src
components fetchUser.ts Button.tsx Modal.tsx legacy.tsx fetch Config.tsindex.ts renamed.ts staged.ts removed.ts
vendor package.json broken.ts slow.ts tsconfig.json README.md package-lock.json 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export interface User {
id : string;
name : string;
role : "admin" | "member" ;
tags : string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser( id : string) : Promise<User | null> {
if ( ! id ) {
return null;
}
const response = await fetch( `/api/users/${ id }` , {
method: "GET" ,
headers: { Accept: "application/json" },
});
if ( ! response . ok ) {
throw new Error( `HTTP ${ response . status }` );
}
return ( await response .json()) as User ;
}
function greet( user : User ) : string {
// Simple greeting function that uses the user's name
return `Hello, ${ user . name }!` ;
}
Problems1
Output
Debug Console
Terminal
Ports
✓ fetchUser passed 12 blk
✗ Cannot find name 'user'. error ▲ warning 412 ready localhost
Ln 5, Col 12
Spaces: 2
UTF-8
LF
TypeScript
TUI Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) editor.foreground
#C6C6C6 RGB(198, 198, 198) RGBA(198, 198, 198, 1) editorBracketHighlight.foreground1
#007BE4 RGB(0, 123, 228) RGBA(0, 123, 228, 1) editorBracketHighlight.foreground2
#259663 RGB(37, 150, 99) RGBA(37, 150, 99, 1) editorBracketHighlight.foreground3
#B022F7 RGB(176, 34, 247) RGBA(176, 34, 247, 1) editorBracketHighlight.foreground4
#E75800 RGB(231, 88, 0) RGBA(231, 88, 0, 1) editorError.foreground
#FE6F28 RGB(254, 111, 40) RGBA(254, 111, 40, 1)
tokenColors Foregrounds this theme assigns to the token scope catalog. A rule with only a font style is skipped, and a longer matching scope wins. Italic and bold rules are not listed — the preview above shows them in the code.
scope HEX RGB RGBA comment
#5C6B6F RGB(92, 107, 111) RGBA(92, 107, 111, 1) comment.block
#5C6B6F RGB(92, 107, 111) RGBA(92, 107, 111, 1) comment.block.documentation
#5C6B6F RGB(92, 107, 111) RGBA(92, 107, 111, 1) comment.line
#5C6B6F RGB(92, 107, 111) RGBA(92, 107, 111, 1) constant
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) constant.character
#AB6526 RGB(171, 101, 38) RGBA(171, 101, 38, 1) constant.numeric
#E7CA11 RGB(231, 202, 17) RGBA(231, 202, 17, 1) constant.other
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) constant.other.placeholder
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) entity
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.name
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.name.class
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.name.function
#039EF1 RGB(3, 158, 241) RGBA(3, 158, 241, 1) entity.name.method
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.name.namespace
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.name.section
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.name.selector
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.name.tag
#D14242 RGB(209, 66, 66) RGBA(209, 66, 66, 1) entity.name.type
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.name.type.enum
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.name.type.interface
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.name.type.struct
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.other
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) entity.other.attribute-name
#23CFFF RGB(35, 207, 255) RGBA(35, 207, 255, 1) entity.other.inherited-class
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) keyword
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) keyword.control
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) keyword.control.flow
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) keyword.operator
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) keyword.operator.new
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) keyword.operator.assignment
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) keyword.operator.arithmetic
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) keyword.operator.logical
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) keyword.other
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) meta
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) meta.class
#039EF1 RGB(3, 158, 241) RGBA(3, 158, 241, 1) meta.function
#039EF1 RGB(3, 158, 241) RGBA(3, 158, 241, 1) meta.function-call
#039EF1 RGB(3, 158, 241) RGBA(3, 158, 241, 1) meta.selector
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) meta.tag
#D14242 RGB(209, 66, 66) RGBA(209, 66, 66, 1) meta.type
#DF36A7 RGB(223, 54, 167) RGBA(223, 54, 167, 1) punctuation.definition.bracket
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) punctuation.definition.comment
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) punctuation.definition.string.begin
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) punctuation.definition.string.end
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) punctuation.separator
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) punctuation.separator.continuation
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) punctuation.terminator
#7B1DB2 RGB(123, 29, 178) RGBA(123, 29, 178, 1) storage
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) storage.modifier
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) storage.type
#B879FF RGB(184, 121, 255) RGBA(184, 121, 255, 1) string
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) string.interpolated
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) string.other
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) string.quoted
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) string.quoted.double
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) string.quoted.other
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) string.quoted.single
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) string.quoted.triple
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) string.regexp
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) string.template
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) string.unquoted
#FF690C RGB(255, 105, 12) RGBA(255, 105, 12, 1) support
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) support.constant
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) support.function
#039EF1 RGB(3, 158, 241) RGBA(3, 158, 241, 1) support.type
#C66714 RGB(198, 103, 20) RGBA(198, 103, 20, 1) support.type.property-name
#C66714 RGB(198, 103, 20) RGBA(198, 103, 20, 1) support.variable
#1ABBB0 RGB(26, 187, 176) RGBA(26, 187, 176, 1) variable
#1ABBB0 RGB(26, 187, 176) RGBA(26, 187, 176, 1) variable.function
#1ABBB0 RGB(26, 187, 176) RGBA(26, 187, 176, 1) variable.language
#1ABBB0 RGB(26, 187, 176) RGBA(26, 187, 176, 1) variable.name
#1ABBB0 RGB(26, 187, 176) RGBA(26, 187, 176, 1) variable.other
#1ABBB0 RGB(26, 187, 176) RGBA(26, 187, 176, 1) variable.other.constant
#1ABBB0 RGB(26, 187, 176) RGBA(26, 187, 176, 1) variable.other.property
#1ABBB0 RGB(26, 187, 176) RGBA(26, 187, 176, 1) variable.other.readwrite
#1ABBB0 RGB(26, 187, 176) RGBA(26, 187, 176, 1) variable.parameter
#1ABBB0 RGB(26, 187, 176) RGBA(26, 187, 176, 1)