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
Dark Programmer
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#ACCECB RGB(172, 206, 203) RGBA(172, 206, 203, 1) editor.lineHighlightBackground
#1B191B RGB(27, 25, 27) RGBA(27, 25, 27, 1) editor.selectionBackground
#3E4E55 RGB(62, 78, 85) RGBA(62, 78, 85, 1) editorCursor.foreground
#A1E4F2 RGB(161, 228, 242) RGBA(161, 228, 242, 1) editorWhitespace.foreground
#2D3A3C RGB(45, 58, 60) RGBA(45, 58, 60, 1) sideBar.background
#1B191B RGB(27, 25, 27) RGBA(27, 25, 27, 1) statusBar.background
#3F5459 RGB(63, 84, 89) RGBA(63, 84, 89, 1) statusBar.noFolderBackground
#FF815C RGB(255, 129, 92) RGBA(255, 129, 92, 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
#6F7475 RGB(111, 116, 117) RGBA(111, 116, 117, 1) comment.block
#6F7475 RGB(111, 116, 117) RGBA(111, 116, 117, 1) comment.block.documentation
#6F7475 RGB(111, 116, 117) RGBA(111, 116, 117, 1) comment.line
#6F7475 RGB(111, 116, 117) RGBA(111, 116, 117, 1) constant
#997A66 RGB(153, 122, 102) RGBA(153, 122, 102, 1) constant.character
#FFE27A RGB(255, 226, 122) RGBA(255, 226, 122, 1) constant.character.escape
#FFE27A RGB(255, 226, 122) RGBA(255, 226, 122, 1) constant.numeric
#A2A275 RGB(162, 162, 117) RGBA(162, 162, 117, 1) constant.numeric.integer
#A2A275 RGB(162, 162, 117) RGBA(162, 162, 117, 1) constant.numeric.float
#A2A275 RGB(162, 162, 117) RGBA(162, 162, 117, 1) constant.numeric.hex
#A2A275 RGB(162, 162, 117) RGBA(162, 162, 117, 1) constant.numeric.octal
#A2A275 RGB(162, 162, 117) RGBA(162, 162, 117, 1) constant.other
#FFE27A RGB(255, 226, 122) RGBA(255, 226, 122, 1) constant.other.placeholder
#FFE27A RGB(255, 226, 122) RGBA(255, 226, 122, 1) entity
#D1DBAF RGB(209, 219, 175) RGBA(209, 219, 175, 1) entity.name
#D1DBAF RGB(209, 219, 175) RGBA(209, 219, 175, 1) entity.name.class
#48BFB5 RGB(72, 191, 181) RGBA(72, 191, 181, 1) entity.name.function
#78CFDE RGB(120, 207, 222) RGBA(120, 207, 222, 1) entity.name.tag
#225588 RGB(34, 85, 136) RGBA(34, 85, 136, 1) entity.name.type
#48BFB5 RGB(72, 191, 181) RGBA(72, 191, 181, 1) entity.name.type.enum
#48BFB5 RGB(72, 191, 181) RGBA(72, 191, 181, 1) entity.name.type.interface
#48BFB5 RGB(72, 191, 181) RGBA(72, 191, 181, 1) entity.name.type.struct
#48BFB5 RGB(72, 191, 181) RGBA(72, 191, 181, 1) entity.other
#7ADDC6 RGB(122, 221, 198) RGBA(122, 221, 198, 1) entity.other.attribute-name
#7ADDC6 RGB(122, 221, 198) RGBA(122, 221, 198, 1) entity.other.inherited-class
#9EA485 RGB(158, 164, 133) RGBA(158, 164, 133, 1) invalid
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#D1DBAF RGB(209, 219, 175) RGBA(209, 219, 175, 1) keyword.control
#9DFAD0 RGB(157, 250, 208) RGBA(157, 250, 208, 1) keyword.control.flow
#9DFAD0 RGB(157, 250, 208) RGBA(157, 250, 208, 1) keyword.operator
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) keyword.operator.new
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) keyword.operator.assignment
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) keyword.operator.arithmetic
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) keyword.operator.logical
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) keyword.other
#D1DBAF RGB(209, 219, 175) RGBA(209, 219, 175, 1) markup
#DDBB88 RGB(221, 187, 136) RGBA(221, 187, 136, 1) markup.bold
#22AA44 RGB(34, 170, 68) RGBA(34, 170, 68, 1) markup.changed
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) markup.deleted
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) markup.heading
#DDBB88 RGB(221, 187, 136) RGBA(221, 187, 136, 1) markup.inline.raw
#78CFDE RGB(120, 207, 222) RGBA(120, 207, 222, 1) markup.inserted
#219186 RGB(33, 145, 134) RGBA(33, 145, 134, 1) markup.italic
#22AA44 RGB(34, 170, 68) RGBA(34, 170, 68, 1) markup.quote
#22AA44 RGB(34, 170, 68) RGBA(34, 170, 68, 1) meta
#E0EDDD RGB(224, 237, 221) RGBA(224, 237, 221, 1) meta.block
#D1DBAF RGB(209, 219, 175) RGBA(209, 219, 175, 1) meta.function
#7ADDC6 RGB(122, 221, 198) RGBA(122, 221, 198, 1) meta.function-call
#7ADDC6 RGB(122, 221, 198) RGBA(122, 221, 198, 1) punctuation.terminator
#7ADDC6 RGB(122, 221, 198) RGBA(122, 221, 198, 1) storage
#C6D29B RGB(198, 210, 155) RGBA(198, 210, 155, 1) storage.modifier
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) storage.type
#7AB5DD RGB(122, 181, 221) RGBA(122, 181, 221, 1) string
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) string.interpolated
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) string.other
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) string.quoted
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) string.quoted.double
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) string.quoted.other
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) string.quoted.single
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) string.quoted.triple
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) string.regexp
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) string.template
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) string.unquoted
#BDFCED RGB(189, 252, 237) RGBA(189, 252, 237, 1) support
#48BFB5 RGB(72, 191, 181) RGBA(72, 191, 181, 1) support.class
#78CFDE RGB(120, 207, 222) RGBA(120, 207, 222, 1) support.constant
#9966B8 RGB(153, 102, 184) RGBA(153, 102, 184, 1) support.function
#78CFDE RGB(120, 207, 222) RGBA(120, 207, 222, 1) support.type
#78CFDE RGB(120, 207, 222) RGBA(120, 207, 222, 1) support.type.primitive
#78CFDE RGB(120, 207, 222) RGBA(120, 207, 222, 1) support.type.property-name
#78CFDE RGB(120, 207, 222) RGBA(120, 207, 222, 1) variable
#FEFEDB RGB(254, 254, 219) RGBA(254, 254, 219, 1) variable.function
#FEFEDB RGB(254, 254, 219) RGBA(254, 254, 219, 1) variable.language
#ACCECB RGB(172, 206, 203) RGBA(172, 206, 203, 1) variable.name
#FEFEDB RGB(254, 254, 219) RGBA(254, 254, 219, 1) variable.other
#FEFEDB RGB(254, 254, 219) RGBA(254, 254, 219, 1) variable.other.constant
#FEFEDB RGB(254, 254, 219) RGBA(254, 254, 219, 1) variable.other.property
#FEFEDB RGB(254, 254, 219) RGBA(254, 254, 219, 1) variable.other.readwrite
#FEFEDB RGB(254, 254, 219) RGBA(254, 254, 219, 1) variable.parameter
#59C1FF RGB(89, 193, 255) RGBA(89, 193, 255, 1)