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
Zelene
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#EE9B009F RGB(238, 155, 0) RGBA(238, 155, 0, 0.624) activityBar.background
#091114 RGB(9, 17, 20) RGBA(9, 17, 20, 1) activityBarBadge.background
#E2A431 RGB(226, 164, 49) RGBA(226, 164, 49, 1) activityBarBadge.foreground
#12181A RGB(18, 24, 26) RGBA(18, 24, 26, 1) button.background
#EE9B006F RGB(238, 155, 0) RGBA(238, 155, 0, 0.435) button.hoverBackground
#EE9B009F RGB(238, 155, 0) RGBA(238, 155, 0, 0.624) checkbox.border
#EE9B00 RGB(238, 155, 0) RGBA(238, 155, 0, 1) dropdown.background
#091114 RGB(9, 17, 20) RGBA(9, 17, 20, 1) editor.background
#12181A RGB(18, 24, 26) RGBA(18, 24, 26, 1) editor.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) editor.lineHighlightBackground
#BBBBBB1F RGB(187, 187, 187) RGBA(187, 187, 187, 0.122) editorGroupHeader.tabsBorder
#EE9B00 RGB(238, 155, 0) RGBA(238, 155, 0, 1) editorLineNumber.activeForeground
#EE9B00 RGB(238, 155, 0) RGBA(238, 155, 0, 1) editorLineNumber.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) focusBorder
#EE9B007F RGB(238, 155, 0) RGBA(238, 155, 0, 0.498) icon.foreground
#EE9B009F RGB(238, 155, 0) RGBA(238, 155, 0, 0.624) input.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) input.placeholderForeground
#FFFFFF9F RGB(255, 255, 255) RGBA(255, 255, 255, 0.624) list.activeSelectionBackground
#EE9B005F RGB(238, 155, 0) RGBA(238, 155, 0, 0.373) list.hoverBackground
#EE9B009F RGB(238, 155, 0) RGBA(238, 155, 0, 0.624) list.hoverForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) minimap.errorHighlight
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) minimap.selectionHighlight
#EE9B00 RGB(238, 155, 0) RGBA(238, 155, 0, 1) panelTitle.activeBorder
#EE9B00 RGB(238, 155, 0) RGBA(238, 155, 0, 1) panelTitle.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) progressBar.background
#EE9B009F RGB(238, 155, 0) RGBA(238, 155, 0, 0.624) scrollbar.shadow
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) scrollbarSlider.activeBackground
#EE9B00 RGB(238, 155, 0) RGBA(238, 155, 0, 1) sideBar.background
#0012198F RGB(0, 18, 25) RGBA(0, 18, 25, 0.561) sideBarSectionHeader.background
#EE9B001F RGB(238, 155, 0) RGBA(238, 155, 0, 0.122) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#F48C069F RGB(244, 140, 6) RGBA(244, 140, 6, 0.624) statusBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.activeBackground
#EE9B007F RGB(238, 155, 0) RGBA(238, 155, 0, 0.498) tab.activeBorderTop
#EE9B00 RGB(238, 155, 0) RGBA(238, 155, 0, 1) tab.hoverBackground
#EE9B002F RGB(238, 155, 0) RGBA(238, 155, 0, 0.184) tab.inactiveForeground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) textLink.activeForeground
#FFBA08 RGB(255, 186, 8) RGBA(255, 186, 8, 1) textLink.foreground
#FAA307 RGB(250, 163, 7) RGBA(250, 163, 7, 1) welcomePage.buttonBackground
#EE9B003F RGB(238, 155, 0) RGBA(238, 155, 0, 0.247) welcomePage.buttonHoverBackground
#EE9B008F RGB(238, 155, 0) RGBA(238, 155, 0, 0.561)
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
#4A800D RGB(74, 128, 13) RGBA(74, 128, 13, 1) comment.block
#4A800D RGB(74, 128, 13) RGBA(74, 128, 13, 1) comment.block.documentation
#4A800D RGB(74, 128, 13) RGBA(74, 128, 13, 1) comment.line
#4A800D RGB(74, 128, 13) RGBA(74, 128, 13, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.integer
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.float
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.hex
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.octal
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#EEEFFF RGB(238, 239, 255) RGBA(238, 239, 255, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#C7A14E RGB(199, 161, 78) RGBA(199, 161, 78, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#D6A852 RGB(214, 168, 82) RGBA(214, 168, 82, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#E0867F RGB(224, 134, 127) RGBA(224, 134, 127, 1) invalid
#E4193B RGB(228, 25, 59) RGBA(228, 25, 59, 1) invalid.deprecated
#E4193B RGB(228, 25, 59) RGBA(228, 25, 59, 1) invalid.illegal
#E4193B RGB(228, 25, 59) RGBA(228, 25, 59, 1) keyword
#27ADD6 RGB(39, 173, 214) RGBA(39, 173, 214, 1) keyword.control
#1645AC RGB(22, 69, 172) RGBA(22, 69, 172, 1) keyword.control.flow
#1645AC RGB(22, 69, 172) RGBA(22, 69, 172, 1) keyword.operator
#27ADD6 RGB(39, 173, 214) RGBA(39, 173, 214, 1) keyword.operator.new
#27ADD6 RGB(39, 173, 214) RGBA(39, 173, 214, 1) keyword.operator.assignment
#27ADD6 RGB(39, 173, 214) RGBA(39, 173, 214, 1) keyword.operator.arithmetic
#27ADD6 RGB(39, 173, 214) RGBA(39, 173, 214, 1) keyword.operator.logical
#27ADD6 RGB(39, 173, 214) RGBA(39, 173, 214, 1) keyword.other
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#E0867F RGB(224, 134, 127) RGBA(224, 134, 127, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#C7A14E RGB(199, 161, 78) RGBA(199, 161, 78, 1) meta.tag
#B37400 RGB(179, 116, 0) RGBA(179, 116, 0, 1) punctuation.definition.bracket
#B37400 RGB(179, 116, 0) RGBA(179, 116, 0, 1) punctuation.definition.comment
#4A800D RGB(74, 128, 13) RGBA(74, 128, 13, 1) punctuation.definition.string.begin
#B37400 RGB(179, 116, 0) RGBA(179, 116, 0, 1) punctuation.definition.string.end
#B37400 RGB(179, 116, 0) RGBA(179, 116, 0, 1) punctuation.separator
#B37400 RGB(179, 116, 0) RGBA(179, 116, 0, 1) punctuation.separator.continuation
#B37400 RGB(179, 116, 0) RGBA(179, 116, 0, 1) punctuation.terminator
#B37400 RGB(179, 116, 0) RGBA(179, 116, 0, 1) storage
#27ADD6 RGB(39, 173, 214) RGBA(39, 173, 214, 1) storage.modifier
#27ADD6 RGB(39, 173, 214) RGBA(39, 173, 214, 1) storage.type
#27ADD6 RGB(39, 173, 214) RGBA(39, 173, 214, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) support.function
#C7A14E RGB(199, 161, 78) RGBA(199, 161, 78, 1) support.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.type
#94D2BD RGB(148, 210, 189) RGBA(148, 210, 189, 1) support.type.primitive
#94D2BD RGB(148, 210, 189) RGBA(148, 210, 189, 1) support.type.property-name
#3EAEE2 RGB(62, 174, 226) RGBA(62, 174, 226, 1) variable
#EEEFFF RGB(238, 239, 255) RGBA(238, 239, 255, 1) variable.function
#C7A14E RGB(199, 161, 78) RGBA(199, 161, 78, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#EEEFFF RGB(238, 239, 255) RGBA(238, 239, 255, 1) variable.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.constant
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.property
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.readwrite
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.parameter
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1)