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
TheseusLost
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) activityBar.foreground
#66B2FF RGB(102, 178, 255) RGBA(102, 178, 255, 1) activityBarBadge.background
#014A8F RGB(1, 74, 143) RGBA(1, 74, 143, 1) activityBarBadge.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) button.background
#014A8F RGB(1, 74, 143) RGBA(1, 74, 143, 1) button.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) button.hoverBackground
#026CC1 RGB(2, 108, 193) RGBA(2, 108, 193, 1) diffEditor.insertedTextBackground
#044F2850 RGB(4, 79, 40) RGBA(4, 79, 40, 0.314) diffEditor.removedTextBackground
#4F1D1D50 RGB(79, 29, 29) RGBA(79, 29, 29, 0.314) dropdown.background
#01102A RGB(1, 16, 42) RGBA(1, 16, 42, 1) dropdown.foreground
#C0C8E0 RGB(192, 200, 224) RGBA(192, 200, 224, 1) editor.background
#010311 RGB(1, 3, 17) RGBA(1, 3, 17, 1) editor.foreground
#4CD8F1 RGB(76, 216, 241) RGBA(76, 216, 241, 1) editorGroupHeader.tabsBackground
#01102A RGB(1, 16, 42) RGBA(1, 16, 42, 1) editorGroupHeader.tabsBorder
#001121 RGB(0, 17, 33) RGBA(0, 17, 33, 1) input.background
#01102A RGB(1, 16, 42) RGBA(1, 16, 42, 1) input.foreground
#C0C8E0 RGB(192, 200, 224) RGBA(192, 200, 224, 1) list.activeSelectionBackground
#014A8F RGB(1, 74, 143) RGBA(1, 74, 143, 1) list.hoverBackground
#001121 RGB(0, 17, 33) RGBA(0, 17, 33, 1) list.inactiveSelectionBackground
#01336D RGB(1, 51, 109) RGBA(1, 51, 109, 1) merge.border
#001121 RGB(0, 17, 33) RGBA(0, 17, 33, 1) merge.currentContentBackground
#044F2850 RGB(4, 79, 40) RGBA(4, 79, 40, 0.314) merge.incomingContentBackground
#4F1D1D50 RGB(79, 29, 29) RGBA(79, 29, 29, 0.314) minimap.background
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) minimap.errorHighlight
#FF5C7C50 RGB(255, 92, 124) RGBA(255, 92, 124, 0.314) minimap.selectionHighlight
#014A8F50 RGB(1, 74, 143) RGBA(1, 74, 143, 0.314) panel.background
#01102A RGB(1, 16, 42) RGBA(1, 16, 42, 1) panel.border
#001121 RGB(0, 17, 33) RGBA(0, 17, 33, 1) panelTitle.activeForeground
#80AAFF RGB(128, 170, 255) RGBA(128, 170, 255, 1) panelTitle.inactiveForeground
#4C6070 RGB(76, 96, 112) RGBA(76, 96, 112, 1) pickerGroup.border
#001121 RGB(0, 17, 33) RGBA(0, 17, 33, 1) pickerGroup.foreground
#80AAFF RGB(128, 170, 255) RGBA(128, 170, 255, 1) progressBar.background
#66B2FF RGB(102, 178, 255) RGBA(102, 178, 255, 1) quickInput.background
#01102A RGB(1, 16, 42) RGBA(1, 16, 42, 1) quickInput.foreground
#C0C8E0 RGB(192, 200, 224) RGBA(192, 200, 224, 1) scrollbarSlider.activeBackground
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) scrollbarSlider.background
#000C18A0 RGB(0, 12, 24) RGBA(0, 12, 24, 0.627) scrollbarSlider.hoverBackground
#000C18C0 RGB(0, 12, 24) RGBA(0, 12, 24, 0.753) sideBar.background
#010A1B RGB(1, 10, 27) RGBA(1, 10, 27, 1) sideBar.foreground
#C0C8E0 RGB(192, 200, 224) RGBA(192, 200, 224, 1) sideBarTitle.background
#01102A RGB(1, 16, 42) RGBA(1, 16, 42, 1) sideBarTitle.foreground
#C0C8E0 RGB(192, 200, 224) RGBA(192, 200, 224, 1) statusBar.background
#000711 RGB(0, 7, 17) RGBA(0, 7, 17, 1) statusBar.foreground
#C0C8E0 RGB(192, 200, 224) RGBA(192, 200, 224, 1) statusBar.noFolderBackground
#01102A RGB(1, 16, 42) RGBA(1, 16, 42, 1) tab.activeBackground
#01102A RGB(1, 16, 42) RGBA(1, 16, 42, 1) tab.activeForeground
#C0C8E0 RGB(192, 200, 224) RGBA(192, 200, 224, 1) tab.inactiveBackground
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) tab.inactiveForeground
#4C6070 RGB(76, 96, 112) RGBA(76, 96, 112, 1) titleBar.activeBackground
#010917 RGB(1, 9, 23) RGBA(1, 9, 23, 1) titleBar.activeForeground
#C0C8E0 RGB(192, 200, 224) RGBA(192, 200, 224, 1) titleBar.inactiveBackground
#01010E RGB(1, 1, 14) RGBA(1, 1, 14, 1) titleBar.inactiveForeground
#4C6070 RGB(76, 96, 112) RGBA(76, 96, 112, 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
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block.documentation
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.line
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#6D7CFD RGB(109, 124, 253) RGBA(109, 124, 253, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#6D7CFD RGB(109, 124, 253) RGBA(109, 124, 253, 1) constant.numeric.integer
#6D7CFD RGB(109, 124, 253) RGBA(109, 124, 253, 1) constant.numeric.float
#6D7CFD RGB(109, 124, 253) RGBA(109, 124, 253, 1) constant.numeric.hex
#6D7CFD RGB(109, 124, 253) RGBA(109, 124, 253, 1) constant.numeric.octal
#6D7CFD RGB(109, 124, 253) RGBA(109, 124, 253, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#06B4FF RGB(6, 180, 255) RGBA(6, 180, 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
#B590FF RGB(181, 144, 255) RGBA(181, 144, 255, 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
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 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
#E96969 RGB(233, 105, 105) RGBA(233, 105, 105, 1) invalid
#CD0F2F RGB(205, 15, 47) RGBA(205, 15, 47, 1) invalid.deprecated
#CD0F2F RGB(205, 15, 47) RGBA(205, 15, 47, 1) invalid.illegal
#CD0F2F RGB(205, 15, 47) RGBA(205, 15, 47, 1) keyword
#DCFFFF RGB(220, 255, 255) RGBA(220, 255, 255, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.operator
#DCFFFF RGB(220, 255, 255) RGBA(220, 255, 255, 1) keyword.operator.new
#DCFFFF RGB(220, 255, 255) RGBA(220, 255, 255, 1) keyword.operator.assignment
#DCFFFF RGB(220, 255, 255) RGBA(220, 255, 255, 1) keyword.operator.arithmetic
#DCFFFF RGB(220, 255, 255) RGBA(220, 255, 255, 1) keyword.operator.logical
#DCFFFF RGB(220, 255, 255) RGBA(220, 255, 255, 1) keyword.other
#6D7CFD RGB(109, 124, 253) RGBA(109, 124, 253, 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
#E96969 RGB(233, 105, 105) RGBA(233, 105, 105, 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
#B590FF RGB(181, 144, 255) RGBA(181, 144, 255, 1) meta.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.bracket
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) punctuation.definition.string.begin
#E96969 RGB(233, 105, 105) RGBA(233, 105, 105, 1) punctuation.definition.string.end
#E96969 RGB(233, 105, 105) RGBA(233, 105, 105, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.separator.continuation
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.terminator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#DCFFFF RGB(220, 255, 255) RGBA(220, 255, 255, 1) storage.modifier
#DCFFFF RGB(220, 255, 255) RGBA(220, 255, 255, 1) storage.type
#DCFFFF RGB(220, 255, 255) RGBA(220, 255, 255, 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
#F0E1C5 RGB(240, 225, 197) RGBA(240, 225, 197, 1) support.constant
#6D7CFD RGB(109, 124, 253) RGBA(109, 124, 253, 1) support.function
#B590FF RGB(181, 144, 255) RGBA(181, 144, 255, 1) support.other
#F0E1C5 RGB(240, 225, 197) RGBA(240, 225, 197, 1) support.type
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.primitive
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.property-name
#416ED7 RGB(65, 110, 215) RGBA(65, 110, 215, 1) variable
#06B4FF RGB(6, 180, 255) RGBA(6, 180, 255, 1) variable.function
#B590FF RGB(181, 144, 255) RGBA(181, 144, 255, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#06B4FF RGB(6, 180, 255) RGBA(6, 180, 255, 1) variable.other
#E94049 RGB(233, 64, 73) RGBA(233, 64, 73, 1) variable.other.constant
#E94049 RGB(233, 64, 73) RGBA(233, 64, 73, 1) variable.other.property
#E94049 RGB(233, 64, 73) RGBA(233, 64, 73, 1) variable.other.readwrite
#E94049 RGB(233, 64, 73) RGBA(233, 64, 73, 1) variable.parameter
#6D7CFD RGB(109, 124, 253) RGBA(109, 124, 253, 1)