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
Esce
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#242A3866 RGB(36, 42, 56) RGBA(36, 42, 56, 0.4) activityBar.background
#1B1F27 RGB(27, 31, 39) RGBA(27, 31, 39, 1) activityBar.foreground
#CBD1DC RGB(203, 209, 220) RGBA(203, 209, 220, 1) activityBar.inactiveForeground
#CBD1DC66 RGB(203, 209, 220) RGBA(203, 209, 220, 0.4) activityBarBadge.background
#337FC1 RGB(51, 127, 193) RGBA(51, 127, 193, 1) badge.background
#337FC1 RGB(51, 127, 193) RGBA(51, 127, 193, 1) button.background
#214983 RGB(33, 73, 131) RGBA(33, 73, 131, 1) button.foreground
#E7F2F9 RGB(231, 242, 249) RGBA(231, 242, 249, 1) button.hoverBackground
#29609E RGB(41, 96, 158) RGBA(41, 96, 158, 1) button.secondaryBackground
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 1) editor.background
#111318 RGB(17, 19, 24) RGBA(17, 19, 24, 1) editor.foreground
#CBD1DC RGB(203, 209, 220) RGBA(203, 209, 220, 1) editorGroupHeader.tabsBackground
#15181E RGB(21, 24, 30) RGBA(21, 24, 30, 1) editorWidget.background
#242A38 RGB(36, 42, 56) RGBA(36, 42, 56, 1) editorWidget.foreground
#A9B3C7 RGB(169, 179, 199) RGBA(169, 179, 199, 1) focusBorder
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 1) foreground
#CBD1DC RGB(203, 209, 220) RGBA(203, 209, 220, 1) input.background
#242A38 RGB(36, 42, 56) RGBA(36, 42, 56, 1) input.foreground
#CBD1DC RGB(203, 209, 220) RGBA(203, 209, 220, 1) input.placeholderForeground
#8594AD RGB(133, 148, 173) RGBA(133, 148, 173, 1) inputOption.activeBorder
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) list.activeSelectionBackground
#242A38 RGB(36, 42, 56) RGBA(36, 42, 56, 1) list.focusBackground
#242A38 RGB(36, 42, 56) RGBA(36, 42, 56, 1) list.highlightForeground
#5EA1D4 RGB(94, 161, 212) RGBA(94, 161, 212, 1) list.hoverBackground
#1B1F27 RGB(27, 31, 39) RGBA(27, 31, 39, 1) list.inactiveSelectionBackground
#1B1F27 RGB(27, 31, 39) RGBA(27, 31, 39, 1) listFilterWidget.background
— — menu.background
#242A38 RGB(36, 42, 56) RGBA(36, 42, 56, 1) menu.foreground
#A9B3C7 RGB(169, 179, 199) RGBA(169, 179, 199, 1) menu.selectionBackground
#1B1F27AA RGB(27, 31, 39) RGBA(27, 31, 39, 0.667) menu.selectionForeground
#CBD1DC RGB(203, 209, 220) RGBA(203, 209, 220, 1) menu.separatorBackground
#333B4D RGB(51, 59, 77) RGBA(51, 59, 77, 1) notifications.background
#242A38 RGB(36, 42, 56) RGBA(36, 42, 56, 1) notifications.foreground
#CBD1DC RGB(203, 209, 220) RGBA(203, 209, 220, 1) panel.background
#111318 RGB(17, 19, 24) RGBA(17, 19, 24, 1) panel.border
#242A38 RGB(36, 42, 56) RGBA(36, 42, 56, 1) panelTitle.activeBorder
#CBD1DC RGB(203, 209, 220) RGBA(203, 209, 220, 1) panelTitle.activeForeground
#CBD1DC RGB(203, 209, 220) RGBA(203, 209, 220, 1) panelTitle.inactiveForeground
#8594AD RGB(133, 148, 173) RGBA(133, 148, 173, 1) progressBar.background
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 1) scrollbar.shadow
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) scrollbarSlider.activeBackground
#8594AD RGB(133, 148, 173) RGBA(133, 148, 173, 1) scrollbarSlider.background
#333B4D RGB(51, 59, 77) RGBA(51, 59, 77, 1) scrollbarSlider.hoverBackground
#465267 RGB(70, 82, 103) RGBA(70, 82, 103, 1) selection.background
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 1) sideBar.background
#15181E RGB(21, 24, 30) RGBA(21, 24, 30, 1) sideBarSectionHeader.background
#1B1F27 RGB(27, 31, 39) RGBA(27, 31, 39, 1) statusBar.background
#337FC1 RGB(51, 127, 193) RGBA(51, 127, 193, 1) statusBar.debuggingBackground
#CC6633 RGB(204, 102, 51) RGBA(204, 102, 51, 1) statusBar.noFolderBackground
#68217A RGB(104, 33, 122) RGBA(104, 33, 122, 1) statusBarItem.remoteBackground
#29609E RGB(41, 96, 158) RGBA(41, 96, 158, 1) tab.activeForeground
#CBD1DC RGB(203, 209, 220) RGBA(203, 209, 220, 1) tab.border
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) tab.hoverForeground
#CBD1DC RGB(203, 209, 220) RGBA(203, 209, 220, 1) tab.inactiveBackground
#1B1F27 RGB(27, 31, 39) RGBA(27, 31, 39, 1) tab.inactiveForeground
#8594AD RGB(133, 148, 173) RGBA(133, 148, 173, 1) terminal.selectionBackground
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 1) textLink.activeForeground
#5EA1D4 RGB(94, 161, 212) RGBA(94, 161, 212, 1) textLink.foreground
#337FC1 RGB(51, 127, 193) RGBA(51, 127, 193, 1) titleBar.activeBackground
#15181E RGB(21, 24, 30) RGBA(21, 24, 30, 1) titleBar.inactiveBackground
#1B1F27 RGB(27, 31, 39) RGBA(27, 31, 39, 1) tree.indentGuidesStroke
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 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
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 1) comment.block
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 1) comment.block.documentation
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 1) comment.line
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 1) constant
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) constant.character
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) constant.character.escape
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) constant.numeric
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) constant.numeric.integer
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) constant.numeric.float
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) constant.numeric.hex
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) constant.numeric.octal
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) constant.other
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) constant.other.placeholder
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name.class
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name.function
#9697E4 RGB(150, 151, 228) RGBA(150, 151, 228, 1) entity.name.method
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name.namespace
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name.section
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name.selector
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name.tag
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name.type
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name.type.enum
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name.type.interface
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.name.type.struct
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.other
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.other.attribute-name
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) entity.other.inherited-class
#96E4D5 RGB(150, 228, 213) RGBA(150, 228, 213, 1) invalid
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) invalid.deprecated
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) invalid.illegal
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) keyword
#97D4FF RGB(151, 212, 255) RGBA(151, 212, 255, 1) keyword.control
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) keyword.control.flow
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) keyword.operator
#97D4FF RGB(151, 212, 255) RGBA(151, 212, 255, 1) keyword.operator.new
#97D4FF RGB(151, 212, 255) RGBA(151, 212, 255, 1) keyword.operator.assignment
#97D4FF RGB(151, 212, 255) RGBA(151, 212, 255, 1) keyword.operator.arithmetic
#97D4FF RGB(151, 212, 255) RGBA(151, 212, 255, 1) keyword.operator.logical
#97D4FF RGB(151, 212, 255) RGBA(151, 212, 255, 1) keyword.other
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) markup
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) markup.bold
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) markup.changed
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) markup.deleted
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) markup.heading
#96E4D5 RGB(150, 228, 213) RGBA(150, 228, 213, 1) markup.inline.raw
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) markup.inserted
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) markup.italic
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) markup.raw
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) markup.underline
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) markup.underline.link
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) meta
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) meta.function-call
#9697E4 RGB(150, 151, 228) RGBA(150, 151, 228, 1) meta.tag
#C296E4 RGB(194, 150, 228) RGBA(194, 150, 228, 1) punctuation.definition.bracket
#C296E4 RGB(194, 150, 228) RGBA(194, 150, 228, 1) punctuation.definition.comment
#5F6F8C RGB(95, 111, 140) RGBA(95, 111, 140, 1) punctuation.definition.string.begin
#C296E4 RGB(194, 150, 228) RGBA(194, 150, 228, 1) punctuation.definition.string.end
#C296E4 RGB(194, 150, 228) RGBA(194, 150, 228, 1) punctuation.separator
#C296E4 RGB(194, 150, 228) RGBA(194, 150, 228, 1) punctuation.separator.continuation
#C296E4 RGB(194, 150, 228) RGBA(194, 150, 228, 1) punctuation.terminator
#C296E4 RGB(194, 150, 228) RGBA(194, 150, 228, 1) storage
#97D4FF RGB(151, 212, 255) RGBA(151, 212, 255, 1) storage.modifier
#97D4FF RGB(151, 212, 255) RGBA(151, 212, 255, 1) storage.type
#97D4FF RGB(151, 212, 255) RGBA(151, 212, 255, 1) string
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) string.interpolated
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) string.other
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) string.quoted
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) string.quoted.double
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) string.quoted.other
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) string.quoted.single
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) string.quoted.triple
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) string.regexp
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) string.template
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) string.unquoted
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) support
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) support.class
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) support.constant
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) support.function
#9697E4 RGB(150, 151, 228) RGBA(150, 151, 228, 1) support.other
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) support.type
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) support.type.primitive
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) support.type.property-name
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) variable
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) variable.function
#9697E4 RGB(150, 151, 228) RGBA(150, 151, 228, 1) variable.language
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) variable.name
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) variable.other
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) variable.other.constant
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) variable.other.property
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) variable.other.readwrite
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1) variable.parameter
#F4F6FA RGB(244, 246, 250) RGBA(244, 246, 250, 1)