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
Non-binary (Dark)
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) activityBar.foreground
#FFF432 RGB(255, 244, 50) RGBA(255, 244, 50, 1) activityBarBadge.background
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) editor.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) editor.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) editorLineNumber.foreground
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) gitDecoration.modifiedResourceForeground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) gitDecoration.untrackedResourceForeground
#FFF432 RGB(255, 244, 50) RGBA(255, 244, 50, 1) list.errorForeground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) list.warningForeground
#FFF432 RGB(255, 244, 50) RGBA(255, 244, 50, 1) sideBarTitle.foreground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) statusBar.background
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) statusBar.debuggingBackground
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) statusBar.foreground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) statusBar.noFolderBackground
#FFF432 RGB(255, 244, 50) RGBA(255, 244, 50, 1) statusBar.noFolderForeground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 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
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) comment.block
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) comment.block.documentation
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) comment.line
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) constant
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) constant.character
#BA9EDA RGB(186, 158, 218) RGBA(186, 158, 218, 1) constant.character.escape
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) constant.numeric
#BA9EDA RGB(186, 158, 218) RGBA(186, 158, 218, 1) constant.numeric.integer
#BA9EDA RGB(186, 158, 218) RGBA(186, 158, 218, 1) constant.numeric.float
#BA9EDA RGB(186, 158, 218) RGBA(186, 158, 218, 1) constant.numeric.hex
#BA9EDA RGB(186, 158, 218) RGBA(186, 158, 218, 1) constant.numeric.octal
#BA9EDA RGB(186, 158, 218) RGBA(186, 158, 218, 1) constant.other
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) constant.other.placeholder
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name.class
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name.function
#AA80DB RGB(170, 128, 219) RGBA(170, 128, 219, 1) entity.name.method
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name.namespace
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name.section
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name.selector
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name.tag
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name.type
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name.type.enum
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name.type.interface
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.name.type.struct
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) entity.other
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) entity.other.attribute-name
#FDF9A2 RGB(253, 249, 162) RGBA(253, 249, 162, 1) entity.other.inherited-class
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) invalid
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) invalid.deprecated
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) invalid.illegal
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.control
#FFFBAA RGB(255, 251, 170) RGBA(255, 251, 170, 1) keyword.control.flow
#FFFBAA RGB(255, 251, 170) RGBA(255, 251, 170, 1) keyword.operator
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.operator.new
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.operator.assignment
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.operator.arithmetic
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.operator.logical
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.other
#BA9EDA RGB(186, 158, 218) RGBA(186, 158, 218, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) markup.changed
#AB7FDD RGB(171, 127, 221) RGBA(171, 127, 221, 1) markup.deleted
#B898DD RGB(184, 152, 221) RGBA(184, 152, 221, 1) markup.heading
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) markup.inline.raw
#B898DD RGB(184, 152, 221) RGBA(184, 152, 221, 1) markup.inserted
#F8F4AB RGB(248, 244, 171) RGBA(248, 244, 171, 1) markup.italic
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) markup.underline.link
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#AA80DB RGB(170, 128, 219) RGBA(170, 128, 219, 1) meta.tag
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.definition.bracket
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.definition.comment
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) punctuation.definition.string.begin
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.definition.string.end
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.separator
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.separator.continuation
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.terminator
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) storage
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) storage.modifier
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) storage.type
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) string
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) string.interpolated
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) string.other
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) string.quoted
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) string.quoted.double
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) string.quoted.other
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) string.quoted.single
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) string.quoted.triple
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) string.regexp
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) string.template
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) string.unquoted
#F7F4F4 RGB(247, 244, 244) RGBA(247, 244, 244, 1) support
#BAA7CF RGB(186, 167, 207) RGBA(186, 167, 207, 1) support.class
#AC7FD1 RGB(172, 127, 209) RGBA(172, 127, 209, 1) support.constant
#BA9EDA RGB(186, 158, 218) RGBA(186, 158, 218, 1) support.function
#AA80DB RGB(170, 128, 219) RGBA(170, 128, 219, 1) support.other
#AC7FD1 RGB(172, 127, 209) RGBA(172, 127, 209, 1) support.type
#E4EEF1 RGB(228, 238, 241) RGBA(228, 238, 241, 1) support.type.primitive
#E4EEF1 RGB(228, 238, 241) RGBA(228, 238, 241, 1) support.type.property-name
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) variable
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.function
#AA80DB RGB(170, 128, 219) RGBA(170, 128, 219, 1) variable.language
#B898DD RGB(184, 152, 221) RGBA(184, 152, 221, 1) variable.name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) variable.other.constant
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) variable.other.property
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) variable.other.readwrite
#FDF780 RGB(253, 247, 128) RGBA(253, 247, 128, 1) variable.parameter
#BA9EDA RGB(186, 158, 218) RGBA(186, 158, 218, 1)