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
T3 Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#1D1921 RGB(29, 25, 33) RGBA(29, 25, 33, 1) editor.foreground
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) editorGutter.background
#1A1419 RGB(26, 20, 25) RGBA(26, 20, 25, 1) editorLineNumber.foreground
#B55487 RGB(181, 84, 135) RGBA(181, 84, 135, 1) foreground
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 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
#B55487 RGB(181, 84, 135) RGBA(181, 84, 135, 1) comment.block
#B55487 RGB(181, 84, 135) RGBA(181, 84, 135, 1) comment.block.documentation
#B55487 RGB(181, 84, 135) RGBA(181, 84, 135, 1) comment.line
#B55487 RGB(181, 84, 135) RGBA(181, 84, 135, 1) constant
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) constant.character
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) constant.numeric
#F1A19D RGB(241, 161, 157) RGBA(241, 161, 157, 1) constant.numeric.integer
#F1A19D RGB(241, 161, 157) RGBA(241, 161, 157, 1) constant.numeric.float
#F1A19D RGB(241, 161, 157) RGBA(241, 161, 157, 1) constant.numeric.hex
#F1A19D RGB(241, 161, 157) RGBA(241, 161, 157, 1) constant.numeric.octal
#F1A19D RGB(241, 161, 157) RGBA(241, 161, 157, 1) constant.other
#F1A19D RGB(241, 161, 157) RGBA(241, 161, 157, 1) constant.other.placeholder
#F1A19D RGB(241, 161, 157) RGBA(241, 161, 157, 1) entity
#F1A19D RGB(241, 161, 157) RGBA(241, 161, 157, 1) entity.name
#F1A19D RGB(241, 161, 157) RGBA(241, 161, 157, 1) entity.name.function
#BAA4ED RGB(186, 164, 237) RGBA(186, 164, 237, 1) entity.name.namespace
#B3DDF1 RGB(179, 221, 241) RGBA(179, 221, 241, 1) entity.name.tag
#E8A5E4 RGB(232, 165, 228) RGBA(232, 165, 228, 1) entity.name.type
#B3DDF1 RGB(179, 221, 241) RGBA(179, 221, 241, 1) entity.name.type.enum
#B3DDF1 RGB(179, 221, 241) RGBA(179, 221, 241, 1) entity.name.type.interface
#B3DDF1 RGB(179, 221, 241) RGBA(179, 221, 241, 1) entity.name.type.struct
#B3DDF1 RGB(179, 221, 241) RGBA(179, 221, 241, 1) entity.other
#BAA4ED RGB(186, 164, 237) RGBA(186, 164, 237, 1) entity.other.attribute-name
#BAA4ED RGB(186, 164, 237) RGBA(186, 164, 237, 1) entity.other.inherited-class
#B3DDF1 RGB(179, 221, 241) RGBA(179, 221, 241, 1) keyword
#F888B5 RGB(248, 136, 181) RGBA(248, 136, 181, 1) keyword.control
#F888B5 RGB(248, 136, 181) RGBA(248, 136, 181, 1) keyword.control.flow
#F888B5 RGB(248, 136, 181) RGBA(248, 136, 181, 1) keyword.operator
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) keyword.operator.new
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) keyword.operator.assignment
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) keyword.operator.arithmetic
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) keyword.operator.logical
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) keyword.other
#F888B5 RGB(248, 136, 181) RGBA(248, 136, 181, 1) markup
#BAA4ED RGB(186, 164, 237) RGBA(186, 164, 237, 1) markup.heading
#F888B5 RGB(248, 136, 181) RGBA(248, 136, 181, 1) markup.inline.raw
#BAA4ED RGB(186, 164, 237) RGBA(186, 164, 237, 1) markup.quote
#BAA4ED RGB(186, 164, 237) RGBA(186, 164, 237, 1) meta
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) meta.function-call
#BAA4ED RGB(186, 164, 237) RGBA(186, 164, 237, 1) meta.preprocessor
#F1A19D RGB(241, 161, 157) RGBA(241, 161, 157, 1) meta.tag
#BAA4ED RGB(186, 164, 237) RGBA(186, 164, 237, 1) punctuation.definition.comment
#B55487 RGB(181, 84, 135) RGBA(181, 84, 135, 1) punctuation.separator
#F888B5 RGB(248, 136, 181) RGBA(248, 136, 181, 1) storage
#B3DDF1 RGB(179, 221, 241) RGBA(179, 221, 241, 1) storage.modifier
#F888B5 RGB(248, 136, 181) RGBA(248, 136, 181, 1) storage.type
#F888B5 RGB(248, 136, 181) RGBA(248, 136, 181, 1) string
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) string.interpolated
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) string.other
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) string.quoted
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) string.quoted.double
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) string.quoted.other
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) string.quoted.single
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) string.quoted.triple
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) string.regexp
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) string.template
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) string.unquoted
#96D0BB RGB(150, 208, 187) RGBA(150, 208, 187, 1) support
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) support.class
#B3DDF1 RGB(179, 221, 241) RGBA(179, 221, 241, 1) support.constant
#E8A5E4 RGB(232, 165, 228) RGBA(232, 165, 228, 1) support.function
#BAA4ED RGB(186, 164, 237) RGBA(186, 164, 237, 1) support.type
#B3DDF1 RGB(179, 221, 241) RGBA(179, 221, 241, 1) support.type.primitive
#B3DDF1 RGB(179, 221, 241) RGBA(179, 221, 241, 1) support.type.property-name
#D2C7E1 RGB(210, 199, 225) RGBA(210, 199, 225, 1) variable
#F2EBFA RGB(242, 235, 250) RGBA(242, 235, 250, 1) variable.function
#F2EBFA RGB(242, 235, 250) RGBA(242, 235, 250, 1) variable.language
#F2EBFA RGB(242, 235, 250) RGBA(242, 235, 250, 1) variable.name
#F2EBFA RGB(242, 235, 250) RGBA(242, 235, 250, 1) variable.other
#F2EBFA RGB(242, 235, 250) RGBA(242, 235, 250, 1) variable.other.constant
#F2EBFA RGB(242, 235, 250) RGBA(242, 235, 250, 1) variable.other.property
#F2EBFA RGB(242, 235, 250) RGBA(242, 235, 250, 1) variable.other.readwrite
#F2EBFA RGB(242, 235, 250) RGBA(242, 235, 250, 1) variable.parameter
#F2EBFA RGB(242, 235, 250) RGBA(242, 235, 250, 1)