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
One Dark Vivid
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#212836 RGB(33, 40, 54) RGBA(33, 40, 54, 1) activityBar.foreground
#99A3B7 RGB(153, 163, 183) RGBA(153, 163, 183, 1) activityBarBadge.background
#528BFF RGB(82, 139, 255) RGBA(82, 139, 255, 1) activityBarBadge.foreground
#D7DAE0 RGB(215, 218, 224) RGBA(215, 218, 224, 1) button.background
#4D78CC RGB(77, 120, 204) RGBA(77, 120, 204, 1) button.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) button.hoverBackground
#6087CF RGB(96, 135, 207) RGBA(96, 135, 207, 1) diffEditor.insertedTextBackground
#00809B33 RGB(0, 128, 155) RGBA(0, 128, 155, 0.2) dropdown.background
#43484D RGB(67, 72, 77) RGBA(67, 72, 77, 1) dropdown.border
#181A1F RGB(24, 26, 31) RGBA(24, 26, 31, 1) editor.background
#212835 RGB(33, 40, 53) RGBA(33, 40, 53, 1) editor.lineHighlightBackground
#2C313A RGB(44, 49, 58) RGBA(44, 49, 58, 1) editor.selectionBackground
#3E4451 RGB(62, 68, 81) RGBA(62, 68, 81, 1) editorCursor.foreground
#528BFF RGB(82, 139, 255) RGBA(82, 139, 255, 1) editorGroup.background
#1B212C RGB(27, 33, 44) RGBA(27, 33, 44, 1) editorGroup.border
#181A1F RGB(24, 26, 31) RGBA(24, 26, 31, 1) editorGroupHeader.tabsBackground
#1B212C RGB(27, 33, 44) RGBA(27, 33, 44, 1) editorHoverWidget.background
#1B212C RGB(27, 33, 44) RGBA(27, 33, 44, 1) editorHoverWidget.border
#181A1F RGB(24, 26, 31) RGBA(24, 26, 31, 1) editorIndentGuide.background
#3C4049 RGB(60, 64, 73) RGBA(60, 64, 73, 1) editorLineNumber.foreground
#636D83 RGB(99, 109, 131) RGBA(99, 109, 131, 1) editorSuggestWidget.background
#1B212C RGB(27, 33, 44) RGBA(27, 33, 44, 1) editorSuggestWidget.border
#181A1F RGB(24, 26, 31) RGBA(24, 26, 31, 1) editorSuggestWidget.selectedBackground
#2C313A RGB(44, 49, 58) RGBA(44, 49, 58, 1) editorWhitespace.foreground
#3C4049 RGB(60, 64, 73) RGBA(60, 64, 73, 1) editorWidget.background
#1B212C RGB(27, 33, 44) RGBA(27, 33, 44, 1) focusBorder
#528BFF RGB(82, 139, 255) RGBA(82, 139, 255, 1) input.background
#1B1D23 RGB(27, 29, 35) RGBA(27, 29, 35, 1) input.border
#181A1F RGB(24, 26, 31) RGBA(24, 26, 31, 1) list.activeSelectionBackground
#252D3B RGB(37, 45, 59) RGBA(37, 45, 59, 1) list.activeSelectionForeground
#D1D5DF RGB(209, 213, 223) RGBA(209, 213, 223, 1) list.focusBackground
#2C313A RGB(44, 49, 58) RGBA(44, 49, 58, 1) list.focusForeground
#99A3B7 RGB(153, 163, 183) RGBA(153, 163, 183, 1) list.highlightForeground
#99A3B7 RGB(153, 163, 183) RGBA(153, 163, 183, 1) list.hoverBackground
#2C313A RGB(44, 49, 58) RGBA(44, 49, 58, 1) list.inactiveSelectionBackground
#252D3B RGB(37, 45, 59) RGBA(37, 45, 59, 1) list.inactiveSelectionForeground
#D1D5DF RGB(209, 213, 223) RGBA(209, 213, 223, 1) notification.background
21252B — — pickerGroup.border
#528BFF RGB(82, 139, 255) RGBA(82, 139, 255, 1) scrollbarSlider.activeBackground
#747D9180 RGB(116, 125, 145) RGBA(116, 125, 145, 0.502) scrollbarSlider.background
#4E566680 RGB(78, 86, 102) RGBA(78, 86, 102, 0.502) scrollbarSlider.hoverBackground
#5A637580 RGB(90, 99, 117) RGBA(90, 99, 117, 0.502) sideBar.background
#1B212C RGB(27, 33, 44) RGBA(27, 33, 44, 1) sideBarSectionHeader.background
#1B212C RGB(27, 33, 44) RGBA(27, 33, 44, 1) statusBar.background
#1A202B RGB(26, 32, 43) RGBA(26, 32, 43, 1) statusBar.debuggingForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.foreground
#949DB1 RGB(148, 157, 177) RGBA(148, 157, 177, 1) statusBar.noFolderBackground
#1B212C RGB(27, 33, 44) RGBA(27, 33, 44, 1) statusBarItem.hoverBackground
#2C313A RGB(44, 49, 58) RGBA(44, 49, 58, 1) tab.activeBackground
#212835 RGB(33, 40, 53) RGBA(33, 40, 53, 1) tab.border
#141820 RGB(20, 24, 32) RGBA(20, 24, 32, 1) tab.inactiveBackground
#212835 RGB(33, 40, 53) RGBA(33, 40, 53, 1) tab.inactiveForeground
#666F7E RGB(102, 111, 126) RGBA(102, 111, 126, 1) titleBar.activeBackground
#212835 RGB(33, 40, 53) RGBA(33, 40, 53, 1) titleBar.activeForeground
#9DA5B4 RGB(157, 165, 180) RGBA(157, 165, 180, 1) titleBar.inactiveBackground
#1B212C RGB(27, 33, 44) RGBA(27, 33, 44, 1) titleBar.inactiveForeground
#9DA5B4 RGB(157, 165, 180) RGBA(157, 165, 180, 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
#516785 RGB(81, 103, 133) RGBA(81, 103, 133, 1) comment.block
#516785 RGB(81, 103, 133) RGBA(81, 103, 133, 1) comment.block.documentation
#516785 RGB(81, 103, 133) RGBA(81, 103, 133, 1) comment.line
#516785 RGB(81, 103, 133) RGBA(81, 103, 133, 1) constant
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) constant.character
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) constant.character.escape
#59F2F7 RGB(89, 242, 247) RGBA(89, 242, 247, 1) constant.numeric
#E9B684 RGB(233, 182, 132) RGBA(233, 182, 132, 1) constant.numeric.integer
#E9B684 RGB(233, 182, 132) RGBA(233, 182, 132, 1) constant.numeric.float
#E9B684 RGB(233, 182, 132) RGBA(233, 182, 132, 1) constant.numeric.hex
#E9B684 RGB(233, 182, 132) RGBA(233, 182, 132, 1) constant.numeric.octal
#E9B684 RGB(233, 182, 132) RGBA(233, 182, 132, 1) constant.other
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) constant.other.placeholder
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) constant.regexp
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) constant.rgb-value
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) entity
#74B3FB RGB(116, 179, 251) RGBA(116, 179, 251, 1) entity.name
#74B3FB RGB(116, 179, 251) RGBA(116, 179, 251, 1) entity.name.class
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name.function
#74B3FB RGB(116, 179, 251) RGBA(116, 179, 251, 1) entity.name.method
#74B3FB RGB(116, 179, 251) RGBA(116, 179, 251, 1) entity.name.namespace
#74B3FB RGB(116, 179, 251) RGBA(116, 179, 251, 1) entity.name.section
#74B3FB RGB(116, 179, 251) RGBA(116, 179, 251, 1) entity.name.selector
#74B3FB RGB(116, 179, 251) RGBA(116, 179, 251, 1) entity.name.tag
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) entity.name.type
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name.type.enum
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name.type.interface
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name.type.struct
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.other
#74B3FB RGB(116, 179, 251) RGBA(116, 179, 251, 1) entity.other.attribute-name
#E9B684 RGB(233, 182, 132) RGBA(233, 182, 132, 1) entity.other.inherited-class
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) invalid
WHITE — — invalid.deprecated
#523D14 RGB(82, 61, 20) RGBA(82, 61, 20, 1) invalid.illegal
WHITE — — keyword
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) keyword.control
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) keyword.control.flow
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) keyword.operator
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) keyword.operator.new
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) keyword.operator.assignment
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) keyword.operator.arithmetic
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) keyword.operator.logical
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) keyword.other
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) markup
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) markup.bold
#E9B684 RGB(233, 182, 132) RGBA(233, 182, 132, 1) markup.changed
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) markup.deleted
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) markup.heading
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) markup.inline.raw
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) markup.inserted
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) markup.italic
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) markup.quote
#E9B684 RGB(233, 182, 132) RGBA(233, 182, 132, 1) markup.raw
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) markup.underline
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) markup.underline.link
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) meta
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) meta.class
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) meta.selector
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) meta.tag
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) punctuation.definition.bracket
#BE5046 RGB(190, 80, 70) RGBA(190, 80, 70, 1) punctuation.definition.comment
#516785 RGB(81, 103, 133) RGBA(81, 103, 133, 1) punctuation.definition.string.begin
#BE5046 RGB(190, 80, 70) RGBA(190, 80, 70, 1) punctuation.definition.string.end
#BE5046 RGB(190, 80, 70) RGBA(190, 80, 70, 1) punctuation.separator
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) punctuation.separator.continuation
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) punctuation.terminator
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) storage
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) storage.modifier
#D49FF4 RGB(212, 159, 244) RGBA(212, 159, 244, 1) storage.type
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) string
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) string.interpolated
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) string.other
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) string.quoted
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) string.quoted.double
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) string.quoted.other
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) string.quoted.single
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) string.quoted.triple
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) string.regexp
#59F2F7 RGB(89, 242, 247) RGBA(89, 242, 247, 1) string.template
#70F49C RGB(112, 244, 156) RGBA(112, 244, 156, 1) string.unquoted
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) support
#59F2F7 RGB(89, 242, 247) RGBA(89, 242, 247, 1) support.class
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) support.constant
#E9B684 RGB(233, 182, 132) RGBA(233, 182, 132, 1) support.function
#59F2F7 RGB(89, 242, 247) RGBA(89, 242, 247, 1) support.type
#59F2F7 RGB(89, 242, 247) RGBA(89, 242, 247, 1) support.type.primitive
#59F2F7 RGB(89, 242, 247) RGBA(89, 242, 247, 1) support.type.property-name
#A8B5D0 RGB(168, 181, 208) RGBA(168, 181, 208, 1) support.variable
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) variable
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) variable.function
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) variable.language
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) variable.name
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) variable.other
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) variable.other.constant
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) variable.other.property
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) variable.other.readwrite
#E56674 RGB(229, 102, 116) RGBA(229, 102, 116, 1) variable.parameter
#E9B684 RGB(233, 182, 132) RGBA(233, 182, 132, 1)