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
CombinedCasts
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#232323 RGB(35, 35, 35) RGBA(35, 35, 35, 1) editor.foreground
#E6E1DC RGB(230, 225, 220) RGBA(230, 225, 220, 1) editor.lineHighlightBackground
#333435 RGB(51, 52, 53) RGBA(51, 52, 53, 1) editor.selectionBackground
#5A647EE0 RGB(90, 100, 126) RGBA(90, 100, 126, 0.878) editorCursor.foreground
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) editorWhitespace.foreground
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 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
#C8A36E RGB(200, 163, 110) RGBA(200, 163, 110, 1) comment.block
#C8A36E RGB(200, 163, 110) RGBA(200, 163, 110, 1) comment.block.documentation
#C8A36E RGB(200, 163, 110) RGBA(200, 163, 110, 1) comment.line
#C8A36E RGB(200, 163, 110) RGBA(200, 163, 110, 1) constant
#4FA84F RGB(79, 168, 79) RGBA(79, 168, 79, 1) constant.character
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) constant.character.escape
#4FA84F RGB(79, 168, 79) RGBA(79, 168, 79, 1) constant.numeric
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) constant.numeric.integer
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) constant.numeric.float
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) constant.numeric.hex
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) constant.numeric.octal
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) constant.other
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) constant.other.placeholder
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) entity
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) entity.name
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) entity.name.class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.function
#ECC56D RGB(236, 197, 109) RGBA(236, 197, 109, 1) entity.name.section
#DFDFF6 RGB(223, 223, 246) RGBA(223, 223, 246, 1) entity.name.tag
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) entity.other
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) entity.other.attribute-name
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) entity.other.inherited-class
#ECC56D RGB(236, 197, 109) RGBA(236, 197, 109, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) keyword.control
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) keyword.control.flow
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) keyword.operator
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) keyword.operator.new
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) keyword.operator.assignment
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) keyword.operator.arithmetic
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) keyword.operator.logical
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) keyword.other
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) markup
#DE7868 RGB(222, 120, 104) RGBA(222, 120, 104, 1) markup.deleted
#DE7868 RGB(222, 120, 104) RGBA(222, 120, 104, 1) markup.inserted
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) markup.raw
#4D84AC RGB(77, 132, 172) RGBA(77, 132, 172, 1) markup.underline
#4D84AC RGB(77, 132, 172) RGBA(77, 132, 172, 1) markup.underline.link
#4D84AC RGB(77, 132, 172) RGBA(77, 132, 172, 1) meta
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) meta.tag
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) punctuation.definition.string.begin
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) punctuation.definition.string.end
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) storage
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) storage.modifier
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) storage.type
#DA9A61 RGB(218, 154, 97) RGBA(218, 154, 97, 1) string
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) string.interpolated
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) string.other
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) string.quoted
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) string.quoted.double
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) string.quoted.other
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) string.quoted.single
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) string.quoted.triple
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) string.regexp
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) string.template
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) string.unquoted
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) support
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) support.class
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) support.constant
#ABBC6A RGB(171, 188, 106) RGBA(171, 188, 106, 1) support.function
#DE7868 RGB(222, 120, 104) RGBA(222, 120, 104, 1) support.other
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) support.type
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) support.type.primitive
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) support.type.property-name
#7EADC9 RGB(126, 173, 201) RGBA(126, 173, 201, 1) variable
#DFDFF6 RGB(223, 223, 246) RGBA(223, 223, 246, 1) variable.language
#DFDFF6 RGB(223, 223, 246) RGBA(223, 223, 246, 1) variable.other
#DFDFF6 RGB(223, 223, 246) RGBA(223, 223, 246, 1) variable.other.constant
#DE7868 RGB(222, 120, 104) RGBA(222, 120, 104, 1) variable.other.property
#DFDFF6 RGB(223, 223, 246) RGBA(223, 223, 246, 1) variable.other.readwrite
#DFDFF6 RGB(223, 223, 246) RGBA(223, 223, 246, 1) variable.parameter
#DFDFF6 RGB(223, 223, 246) RGBA(223, 223, 246, 1)