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
greenlittlefafa
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#7EAA45 RGB(126, 170, 69) RGBA(126, 170, 69, 1) activityBar.activeBorder
#7EAA45 RGB(126, 170, 69) RGBA(126, 170, 69, 1) activityBar.background
#F5F8E8 RGB(245, 248, 232) RGBA(245, 248, 232, 1) activityBar.foreground
#5E8F0B RGB(94, 143, 11) RGBA(94, 143, 11, 1) activityBarBadge.foreground
#615B0B RGB(97, 91, 11) RGBA(97, 91, 11, 1) button.background
#7EAA45 RGB(126, 170, 69) RGBA(126, 170, 69, 1) button.foreground
#5B308D RGB(91, 48, 141) RGBA(91, 48, 141, 1) button.hoverBackground
#B4B104 RGB(180, 177, 4) RGBA(180, 177, 4, 1) dropdown.background
#F5F8E8 RGB(245, 248, 232) RGBA(245, 248, 232, 1) editor.background
#F5F8E8 RGB(245, 248, 232) RGBA(245, 248, 232, 1) editor.foreground
#3D4E37 RGB(61, 78, 55) RGBA(61, 78, 55, 1) editor.lineHighlightBackground
#DFE6B6 RGB(223, 230, 182) RGBA(223, 230, 182, 1) editor.selectionBackground
#C0A1E956 RGB(192, 161, 233) RGBA(192, 161, 233, 0.337) editorGroupHeader.tabsBackground
#F5F8E8 RGB(245, 248, 232) RGBA(245, 248, 232, 1) editorIndentGuide.background
#BEB997 RGB(190, 185, 151) RGBA(190, 185, 151, 1) editorLineNumber.foreground
#50791B RGB(80, 121, 27) RGBA(80, 121, 27, 1) editorRuler.foreground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) list.activeSelectionBackground
#9DC41D99 RGB(157, 196, 29) RGBA(157, 196, 29, 0.6) list.focusBackground
#ACC71254 RGB(172, 199, 18) RGBA(172, 199, 18, 0.329) menu.selectionBackground
#7EAA45 RGB(126, 170, 69) RGBA(126, 170, 69, 1) scrollbarSlider.background
#7EAA45 RGB(126, 170, 69) RGBA(126, 170, 69, 1) sideBar.background
#F5F8E8 RGB(245, 248, 232) RGBA(245, 248, 232, 1) sideBarSectionHeader.background
#7EAA45 RGB(126, 170, 69) RGBA(126, 170, 69, 1) sideBarTitle.foreground
#0F0F0F RGB(15, 15, 15) RGBA(15, 15, 15, 1) statusBar.background
#F5F8E8 RGB(245, 248, 232) RGBA(245, 248, 232, 1) statusBar.foreground
#3B4213 RGB(59, 66, 19) RGBA(59, 66, 19, 1) statusBar.noFolderBackground
#7EAA45 RGB(126, 170, 69) RGBA(126, 170, 69, 1) symbolIcon.folderForeground
#577723 RGB(87, 119, 35) RGBA(87, 119, 35, 1) tab.activeBackground
#6FAA2259 RGB(111, 170, 34) RGBA(111, 170, 34, 0.349) tab.activeBorder
#3B661E RGB(59, 102, 30) RGBA(59, 102, 30, 1) tab.activeForeground
#36312ABE RGB(54, 49, 42) RGBA(54, 49, 42, 0.745) tab.hoverBackground
#C9E6B29F RGB(201, 230, 178) RGBA(201, 230, 178, 0.624) tab.inactiveBackground
#F5F8E8 RGB(245, 248, 232) RGBA(245, 248, 232, 1) terminal.border
#52770C RGB(82, 119, 12) RGBA(82, 119, 12, 1) textLink.foreground
#4B3A53 RGB(75, 58, 83) RGBA(75, 58, 83, 1) titleBar.activeBackground
#7EAA45 RGB(126, 170, 69) RGBA(126, 170, 69, 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
#C98E22D7 RGB(201, 142, 34) RGBA(201, 142, 34, 0.843) comment.block
#C98E22D7 RGB(201, 142, 34) RGBA(201, 142, 34, 0.843) comment.block.documentation
#76AF5F RGB(118, 175, 95) RGBA(118, 175, 95, 1) comment.line
#C98E22D7 RGB(201, 142, 34) RGBA(201, 142, 34, 0.843) constant
#6E85C4 RGB(110, 133, 196) RGBA(110, 133, 196, 1) constant.character
#75AA31 RGB(117, 170, 49) RGBA(117, 170, 49, 1) constant.character.escape
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) constant.numeric
#75AA31 RGB(117, 170, 49) RGBA(117, 170, 49, 1) constant.numeric.integer
#75AA31 RGB(117, 170, 49) RGBA(117, 170, 49, 1) constant.numeric.float
#75AA31 RGB(117, 170, 49) RGBA(117, 170, 49, 1) constant.numeric.hex
#75AA31 RGB(117, 170, 49) RGBA(117, 170, 49, 1) constant.numeric.octal
#75AA31 RGB(117, 170, 49) RGBA(117, 170, 49, 1) constant.other
#2E800E RGB(46, 128, 14) RGBA(46, 128, 14, 1) constant.other.placeholder
#2E800E RGB(46, 128, 14) RGBA(46, 128, 14, 1) constant.regexp
#6E85C4 RGB(110, 133, 196) RGBA(110, 133, 196, 1) constant.rgb-value
#6E85C4 RGB(110, 133, 196) RGBA(110, 133, 196, 1) entity
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) entity.name
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) entity.name.class
#87B922 RGB(135, 185, 34) RGBA(135, 185, 34, 1) entity.name.function
#0EB2CFE3 RGB(14, 178, 207) RGBA(14, 178, 207, 0.89) entity.name.method
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) entity.name.namespace
#87B922 RGB(135, 185, 34) RGBA(135, 185, 34, 1) entity.name.section
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) entity.name.selector
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) entity.name.tag
#367518 RGB(54, 117, 24) RGBA(54, 117, 24, 1) entity.name.type
#87B922 RGB(135, 185, 34) RGBA(135, 185, 34, 1) entity.name.type.enum
#87B922 RGB(135, 185, 34) RGBA(135, 185, 34, 1) entity.name.type.interface
#87B922 RGB(135, 185, 34) RGBA(135, 185, 34, 1) entity.name.type.struct
#87B922 RGB(135, 185, 34) RGBA(135, 185, 34, 1) entity.other
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) entity.other.attribute-name
#C255B3 RGB(194, 85, 179) RGBA(194, 85, 179, 1) entity.other.inherited-class
#048A5D RGB(4, 138, 93) RGBA(4, 138, 93, 1) invalid
#5CFFC0 RGB(92, 255, 192) RGBA(92, 255, 192, 1) invalid.illegal
#5CFFC0 RGB(92, 255, 192) RGBA(92, 255, 192, 1) keyword
#288034 RGB(40, 128, 52) RGBA(40, 128, 52, 1) keyword.control
#288034 RGB(40, 128, 52) RGBA(40, 128, 52, 1) keyword.control.flow
#288034 RGB(40, 128, 52) RGBA(40, 128, 52, 1) keyword.operator
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) keyword.operator.new
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) keyword.operator.assignment
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) keyword.operator.arithmetic
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) keyword.operator.logical
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) keyword.other
#288034 RGB(40, 128, 52) RGBA(40, 128, 52, 1) markup
#367518 RGB(54, 117, 24) RGBA(54, 117, 24, 1) markup.bold
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) markup.changed
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.deleted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.heading
#AA3731 RGB(170, 55, 49) RGBA(170, 55, 49, 1) markup.inline.raw
#AB6526 RGB(171, 101, 38) RGBA(171, 101, 38, 1) markup.inserted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.italic
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) markup.list
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) markup.list.numbered
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) markup.list.unnumbered
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) markup.quote
#C7AB8A RGB(199, 171, 138) RGBA(199, 171, 138, 1) markup.raw
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) meta
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) meta.selector
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) meta.tag
#49791CE3 RGB(73, 121, 28) RGBA(73, 121, 28, 0.89) punctuation.definition.bracket
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) punctuation.definition.comment
#B6B90BC9 RGB(182, 185, 11) RGBA(182, 185, 11, 0.788) punctuation.definition.string.begin
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) punctuation.definition.string.end
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) punctuation.separator
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) punctuation.separator.continuation
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) punctuation.terminator
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) storage
#288034 RGB(40, 128, 52) RGBA(40, 128, 52, 1) storage.modifier
#288034 RGB(40, 128, 52) RGBA(40, 128, 52, 1) storage.type
#4067AFD8 RGB(64, 103, 175) RGBA(64, 103, 175, 0.847) string
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) string.interpolated
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) string.other
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) string.quoted
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) string.quoted.double
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) string.quoted.other
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) string.quoted.single
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) string.quoted.triple
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) string.regexp
#DF9408 RGB(223, 148, 8) RGBA(223, 148, 8, 1) string.template
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) string.unquoted
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) support
#75AA31 RGB(117, 170, 49) RGBA(117, 170, 49, 1) support.class
#048A5D RGB(4, 138, 93) RGBA(4, 138, 93, 1) support.constant
#75AA31 RGB(117, 170, 49) RGBA(117, 170, 49, 1) support.function
#0EB2CFE3 RGB(14, 178, 207) RGBA(14, 178, 207, 0.89) support.other
#DF9408 RGB(223, 148, 8) RGBA(223, 148, 8, 1) support.type
#4067AFD8 RGB(64, 103, 175) RGBA(64, 103, 175, 0.847) support.type.primitive
#4067AFD8 RGB(64, 103, 175) RGBA(64, 103, 175, 0.847) support.type.property-name
#6FA709 RGB(111, 167, 9) RGBA(111, 167, 9, 1) support.variable
#4C8F26 RGB(76, 143, 38) RGBA(76, 143, 38, 1) variable
#4C8F26 RGB(76, 143, 38) RGBA(76, 143, 38, 1) variable.function
#4C8F26 RGB(76, 143, 38) RGBA(76, 143, 38, 1) variable.language
#BB4108 RGB(187, 65, 8) RGBA(187, 65, 8, 1) variable.name
#4C8F26 RGB(76, 143, 38) RGBA(76, 143, 38, 1) variable.other
#4C8F26 RGB(76, 143, 38) RGBA(76, 143, 38, 1) variable.other.constant
#4C8F26 RGB(76, 143, 38) RGBA(76, 143, 38, 1) variable.other.property
#B9AD00 RGB(185, 173, 0) RGBA(185, 173, 0, 1) variable.other.readwrite
#4C8F26 RGB(76, 143, 38) RGBA(76, 143, 38, 1) variable.parameter
#75AA31 RGB(117, 170, 49) RGBA(117, 170, 49, 1)