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
Reverse Light
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#3F3F3F RGB(63, 63, 63) RGBA(63, 63, 63, 1) activityBarBadge.background
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) editor.background
#F7F7F7 RGB(247, 247, 247) RGBA(247, 247, 247, 1) editor.findMatchBackground
#B0C5E3CC RGB(176, 197, 227) RGBA(176, 197, 227, 0.8) editor.findMatchHighlightBackground
#FFB442CC RGB(255, 180, 66) RGBA(255, 180, 66, 0.8) editor.foreground
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) editor.lineHighlightBackground
#F7F7F7 RGB(247, 247, 247) RGBA(247, 247, 247, 1) editor.selectionBackground
#B0C5E3 RGB(176, 197, 227) RGBA(176, 197, 227, 1) editor.wordHighlightBackground
#ECEBA3CC RGB(236, 235, 163) RGBA(236, 235, 163, 0.8) editorCursor.foreground
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) editorIndentGuide.background
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) editorLineNumber.foreground
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) editorWhitespace.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) peekViewResult.matchHighlightBackground
#FFB442CC RGB(255, 180, 66) RGBA(255, 180, 66, 0.8) sideBar.border
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) statusBar.background
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 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
#5A4B81 RGB(90, 75, 129) RGBA(90, 75, 129, 1) comment.block
#5A4B81 RGB(90, 75, 129) RGBA(90, 75, 129, 1) comment.block.documentation
#5A4B81 RGB(90, 75, 129) RGBA(90, 75, 129, 1) comment.line
#5A4B81 RGB(90, 75, 129) RGBA(90, 75, 129, 1) constant
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) constant.character
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) constant.character.escape
#5A4B81 RGB(90, 75, 129) RGBA(90, 75, 129, 1) constant.numeric
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) constant.numeric.integer
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) constant.numeric.float
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) constant.numeric.hex
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) constant.numeric.octal
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) constant.other
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) constant.other.placeholder
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) constant.regexp
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) constant.rgb-value
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) entity
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) entity.name
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) entity.name.class
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) entity.name.function
#07BC3A RGB(7, 188, 58) RGBA(7, 188, 58, 1) entity.name.section
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) entity.name.tag
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) entity.name.type
#E89E64 RGB(232, 158, 100) RGBA(232, 158, 100, 1) entity.name.type.enum
#E89E64 RGB(232, 158, 100) RGBA(232, 158, 100, 1) entity.name.type.interface
#E89E64 RGB(232, 158, 100) RGBA(232, 158, 100, 1) entity.name.type.struct
#E89E64 RGB(232, 158, 100) RGBA(232, 158, 100, 1) entity.other
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) entity.other.attribute-name
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) entity.other.inherited-class
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) invalid
#E96379 RGB(233, 99, 121) RGBA(233, 99, 121, 1) invalid.deprecated
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) invalid.illegal
#E96379 RGB(233, 99, 121) RGBA(233, 99, 121, 1) keyword
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) keyword.control
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) keyword.control.flow
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) keyword.operator
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) keyword.operator.new
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) keyword.operator.assignment
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) keyword.operator.arithmetic
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) keyword.operator.logical
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) keyword.other
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) markup
#07BC3A RGB(7, 188, 58) RGBA(7, 188, 58, 1) markup.bold
#E89E64 RGB(232, 158, 100) RGBA(232, 158, 100, 1) markup.changed
#E89E64 RGB(232, 158, 100) RGBA(232, 158, 100, 1) markup.deleted
#E96379 RGB(233, 99, 121) RGBA(233, 99, 121, 1) markup.heading
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) markup.inline.raw
#07BC3A RGB(7, 188, 58) RGBA(7, 188, 58, 1) markup.inserted
#07BC3A RGB(7, 188, 58) RGBA(7, 188, 58, 1) markup.italic
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) markup.quote
#0037FF RGB(0, 55, 255) RGBA(0, 55, 255, 1) markup.raw
#07BC3A RGB(7, 188, 58) RGBA(7, 188, 58, 1) markup.underline
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) markup.underline.link
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) meta
#5A4B81 RGB(90, 75, 129) RGBA(90, 75, 129, 1) meta.function-call
#07BC3A RGB(7, 188, 58) RGBA(7, 188, 58, 1) meta.preprocessor
#5A4B81 RGB(90, 75, 129) RGBA(90, 75, 129, 1) meta.return-type
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) meta.selector
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) punctuation.definition.bracket
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) punctuation.definition.comment
#5A4B81 RGB(90, 75, 129) RGBA(90, 75, 129, 1) punctuation.definition.string.begin
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) punctuation.definition.string.end
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) punctuation.separator
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) punctuation.separator.continuation
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) punctuation.terminator
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) storage
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) storage.modifier
#8E0090 RGB(142, 0, 144) RGBA(142, 0, 144, 1) storage.type
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) string
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) string.interpolated
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) string.other
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) string.quoted
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) string.quoted.double
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) string.quoted.other
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) string.quoted.single
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) string.quoted.triple
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) string.regexp
#0037FF RGB(0, 55, 255) RGBA(0, 55, 255, 1) string.template
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) string.unquoted
#727272 RGB(114, 114, 114) RGBA(114, 114, 114, 1) support
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) support.class
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) support.constant
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) support.function
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) support.other
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) support.type
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) support.type.primitive
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) support.type.property-name
#988BC7 RGB(152, 139, 199) RGBA(152, 139, 199, 1) support.variable
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) variable
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.function
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.language
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) variable.name
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.other
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) variable.other.constant
#00C1BE RGB(0, 193, 190) RGBA(0, 193, 190, 1) variable.other.property
#07BC3A RGB(7, 188, 58) RGBA(7, 188, 58, 1) variable.other.readwrite
#E89E64 RGB(232, 158, 100) RGBA(232, 158, 100, 1) variable.parameter
#E89E64 RGB(232, 158, 100) RGBA(232, 158, 100, 1)