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
Engineer v2
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) activityBar.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) activityBarBadge.background
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) breadcrumb.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) breadcrumb.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) editor.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) editor.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) editor.lineHighlightBackground
#181F25 RGB(24, 31, 37) RGBA(24, 31, 37, 1) editor.lineHighlightBorder
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) editor.selectionBackground
#3B4E60B7 RGB(59, 78, 96) RGBA(59, 78, 96, 0.718) editorBracketMatch.border
#232E38 RGB(35, 46, 56) RGBA(35, 46, 56, 1) editorCursor.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) editorGroup.emptyBackground
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) editorGroupHeader.tabsBackground
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) editorGutter.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) editorHint.border
#82C2FF RGB(130, 194, 255) RGBA(130, 194, 255, 1) editorHint.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) editorHoverWidget.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) editorHoverWidget.border
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) editorHoverWidget.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) editorIndentGuide.activeBackground
#3B4E60 RGB(59, 78, 96) RGBA(59, 78, 96, 1) editorIndentGuide.background
#192129 RGB(25, 33, 41) RGBA(25, 33, 41, 1) editorLineNumber.foreground
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) editorPane.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) editorRuler.foreground
#1D262F RGB(29, 38, 47) RGBA(29, 38, 47, 1) editorWidget.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) editorWidget.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) input.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) menu.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) menu.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) menu.separatorBackground
#3B4E60 RGB(59, 78, 96) RGBA(59, 78, 96, 1) panel.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) quickInput.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) quickInput.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) sideBar.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) sideBar.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) sideBarSectionHeader.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) sideBarSectionHeader.foreground
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) sideBarTitle.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) statusBar.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) statusBar.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) statusBarItem.hoverBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) tab.activeBackground
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) tab.activeForeground
#82C2FF RGB(130, 194, 255) RGBA(130, 194, 255, 1) tab.inactiveBackground
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) tab.inactiveForeground
#5C7791 RGB(92, 119, 145) RGBA(92, 119, 145, 1) terminal.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) terminal.foreground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) textBlockQuote.background
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) titleBar.activeBackground
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 1) titleBar.activeForeground
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) window.activeBorder
#141A20 RGB(20, 26, 32) RGBA(20, 26, 32, 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
#3B4E60 RGB(59, 78, 96) RGBA(59, 78, 96, 1) comment.block
#3B4E60 RGB(59, 78, 96) RGBA(59, 78, 96, 1) comment.block.documentation
#3B4E60 RGB(59, 78, 96) RGBA(59, 78, 96, 1) comment.line
#3B4E60 RGB(59, 78, 96) RGBA(59, 78, 96, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#5884AD RGB(88, 132, 173) RGBA(88, 132, 173, 1) constant.character.escape
#868686 RGB(134, 134, 134) RGBA(134, 134, 134, 1) constant.numeric
#5884AD RGB(88, 132, 173) RGBA(88, 132, 173, 1) constant.numeric.integer
#5884AD RGB(88, 132, 173) RGBA(88, 132, 173, 1) constant.numeric.float
#5884AD RGB(88, 132, 173) RGBA(88, 132, 173, 1) constant.numeric.hex
#5884AD RGB(88, 132, 173) RGBA(88, 132, 173, 1) constant.numeric.octal
#5884AD RGB(88, 132, 173) RGBA(88, 132, 173, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) entity
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name.class
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name.function
#4595CA RGB(69, 149, 202) RGBA(69, 149, 202, 1) entity.name.method
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name.namespace
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name.section
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name.selector
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name.tag
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name.type
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name.type.enum
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name.type.interface
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.name.type.struct
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) entity.other
#82C2FF RGB(130, 194, 255) RGBA(130, 194, 255, 1) entity.other.attribute-name
#1495E0 RGB(20, 149, 224) RGBA(20, 149, 224, 1) entity.other.inherited-class
#828282 RGB(130, 130, 130) RGBA(130, 130, 130, 1) invalid
#9E3535 RGB(158, 53, 53) RGBA(158, 53, 53, 1) invalid.deprecated
#9E3535 RGB(158, 53, 53) RGBA(158, 53, 53, 1) invalid.illegal
#9E3535 RGB(158, 53, 53) RGBA(158, 53, 53, 1) keyword
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) keyword.control
#F3CA45 RGB(243, 202, 69) RGBA(243, 202, 69, 1) keyword.control.flow
#F3CA45 RGB(243, 202, 69) RGBA(243, 202, 69, 1) keyword.operator
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) keyword.operator.new
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) keyword.operator.assignment
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) keyword.operator.arithmetic
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) keyword.operator.logical
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) keyword.other
#5884AD RGB(88, 132, 173) RGBA(88, 132, 173, 1) markup
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) markup.bold
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) markup.changed
#B067E0 RGB(176, 103, 224) RGBA(176, 103, 224, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#828282 RGB(130, 130, 130) RGBA(130, 130, 130, 1) markup.inline.raw
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) markup.inserted
#1495E0 RGB(20, 149, 224) RGBA(20, 149, 224, 1) markup.italic
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 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
#4595CA RGB(69, 149, 202) RGBA(69, 149, 202, 1) meta.tag
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) punctuation.definition.bracket
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) punctuation.definition.comment
#3B4E60 RGB(59, 78, 96) RGBA(59, 78, 96, 1) punctuation.definition.string.begin
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) punctuation.definition.string.end
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) punctuation.separator
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) punctuation.separator.continuation
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) punctuation.terminator
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) storage
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) storage.modifier
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) storage.type
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) string
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) string.interpolated
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) string.other
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) string.quoted
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) string.quoted.double
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) string.quoted.other
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) string.quoted.single
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) string.quoted.triple
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) string.regexp
#FC7F4D RGB(252, 127, 77) RGBA(252, 127, 77, 1) string.template
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) string.unquoted
#5996CF RGB(89, 150, 207) RGBA(89, 150, 207, 1) support
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) support.class
#82C2FF RGB(130, 194, 255) RGBA(130, 194, 255, 1) support.constant
#5884AD RGB(88, 132, 173) RGBA(88, 132, 173, 1) support.function
#4595CA RGB(69, 149, 202) RGBA(69, 149, 202, 1) support.other
#82C2FF RGB(130, 194, 255) RGBA(130, 194, 255, 1) support.type
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) support.type.primitive
#356B9E RGB(53, 107, 158) RGBA(53, 107, 158, 1) support.type.property-name
#DADADA RGB(218, 218, 218) RGBA(218, 218, 218, 1) variable
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) variable.function
#4595CA RGB(69, 149, 202) RGBA(69, 149, 202, 1) variable.language
#82C2FF RGB(130, 194, 255) RGBA(130, 194, 255, 1) variable.name
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) variable.other
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) variable.other.constant
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) variable.other.property
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) variable.other.readwrite
#C4C4C4 RGB(196, 196, 196) RGBA(196, 196, 196, 1) variable.parameter
#5884AD RGB(88, 132, 173) RGBA(88, 132, 173, 1)