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
BalanceD
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) editor.foreground
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) editor.inactiveSelectionBackground
#00000099 RGB(0, 0, 0) RGBA(0, 0, 0, 0.6) editor.lineHighlightBackground
#00000033 RGB(0, 0, 0) RGBA(0, 0, 0, 0.2) editor.selectionBackground
#00000066 RGB(0, 0, 0) RGBA(0, 0, 0, 0.4) editorCursor.foreground
#A7A7A7 RGB(167, 167, 167) RGBA(167, 167, 167, 1) editorWhitespace.foreground
#FFFFFF11 RGB(255, 255, 255) RGBA(255, 255, 255, 0.067)
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
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.block
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.block.documentation
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.line
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) constant
#DDAADD RGB(221, 170, 221) RGBA(221, 170, 221, 1) constant.character
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) constant.character.escape
#CC6633 RGB(204, 102, 51) RGBA(204, 102, 51, 1) constant.numeric
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) constant.numeric.integer
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) constant.numeric.float
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) constant.numeric.hex
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) constant.numeric.octal
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) constant.other
#DDAADD RGB(221, 170, 221) RGBA(221, 170, 221, 1) constant.other.placeholder
#DDAADD RGB(221, 170, 221) RGBA(221, 170, 221, 1) constant.regexp
#DDAADD RGB(221, 170, 221) RGBA(221, 170, 221, 1) constant.rgb-value
#DDAADD RGB(221, 170, 221) RGBA(221, 170, 221, 1) entity
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.name
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.name.class
#CC6633 RGB(204, 102, 51) RGBA(204, 102, 51, 1) entity.name.function
#CC6633 RGB(204, 102, 51) RGBA(204, 102, 51, 1) entity.name.method
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.name.namespace
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.name.section
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.name.selector
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.name.tag
#996699 RGB(153, 102, 153) RGBA(153, 102, 153, 1) entity.name.type
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.name.type.enum
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.name.type.interface
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.name.type.struct
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.other
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) entity.other.attribute-name
#C7B299 RGB(199, 178, 153) RGBA(199, 178, 153, 1) entity.other.inherited-class
#CC6633 RGB(204, 102, 51) RGBA(204, 102, 51, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#CC3333 RGB(204, 51, 51) RGBA(204, 51, 51, 1) keyword.control
#CC3333 RGB(204, 51, 51) RGBA(204, 51, 51, 1) keyword.control.flow
#CC3333 RGB(204, 51, 51) RGBA(204, 51, 51, 1) keyword.operator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.new
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.assignment
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.arithmetic
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.logical
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.other
#CC3333 RGB(204, 51, 51) RGBA(204, 51, 51, 1) markup
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) markup.changed
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.deleted
#444444 RGB(68, 68, 68) RGBA(68, 68, 68, 1) markup.heading
#FF99CC RGB(255, 153, 204) RGBA(255, 153, 204, 1) markup.inline.raw
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) markup.list
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.list.numbered
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.list.unnumbered
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.raw
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) markup.underline
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) markup.underline.link
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) meta
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) meta.class
#CC3366 RGB(204, 51, 102) RGBA(204, 51, 102, 1) meta.function
#FF3399 RGB(255, 51, 153) RGBA(255, 51, 153, 1) meta.function-call
#CC6633 RGB(204, 102, 51) RGBA(204, 102, 51, 1) meta.preprocessor
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) meta.tag
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) punctuation.definition.bracket
#FF99FF RGB(255, 153, 255) RGBA(255, 153, 255, 1) punctuation.definition.comment
#FF99FF RGB(255, 153, 255) RGBA(255, 153, 255, 1) punctuation.definition.string.begin
#FF99FF RGB(255, 153, 255) RGBA(255, 153, 255, 1) punctuation.definition.string.end
#FF99FF RGB(255, 153, 255) RGBA(255, 153, 255, 1) punctuation.separator
#FF99FF RGB(255, 153, 255) RGBA(255, 153, 255, 1) punctuation.separator.continuation
#FF99FF RGB(255, 153, 255) RGBA(255, 153, 255, 1) punctuation.terminator
#FF99FF RGB(255, 153, 255) RGBA(255, 153, 255, 1) storage
#D9342B RGB(217, 52, 43) RGBA(217, 52, 43, 1) storage.modifier
#D9342B RGB(217, 52, 43) RGBA(217, 52, 43, 1) storage.type
#D9342B RGB(217, 52, 43) RGBA(217, 52, 43, 1) string
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) string.interpolated
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) string.other
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) string.quoted
#99CC66 RGB(153, 204, 102) RGBA(153, 204, 102, 1) string.quoted.double
#99CC66 RGB(153, 204, 102) RGBA(153, 204, 102, 1) string.quoted.other
#99CC66 RGB(153, 204, 102) RGBA(153, 204, 102, 1) string.quoted.single
#99CC66 RGB(153, 204, 102) RGBA(153, 204, 102, 1) string.quoted.triple
#99CC66 RGB(153, 204, 102) RGBA(153, 204, 102, 1) string.regexp
#99CC66 RGB(153, 204, 102) RGBA(153, 204, 102, 1) string.template
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) string.unquoted
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) support
#FF3399 RGB(255, 51, 153) RGBA(255, 51, 153, 1) support.class
#E3832D RGB(227, 131, 45) RGBA(227, 131, 45, 1) support.constant
#A3D1FF RGB(163, 209, 255) RGBA(163, 209, 255, 1) support.function
#CC6633 RGB(204, 102, 51) RGBA(204, 102, 51, 1) support.other
#DBAF00 RGB(219, 175, 0) RGBA(219, 175, 0, 1) support.type
#E3832D RGB(227, 131, 45) RGBA(227, 131, 45, 1) support.type.primitive
#E3832D RGB(227, 131, 45) RGBA(227, 131, 45, 1) support.type.property-name
#6699CC RGB(102, 153, 204) RGBA(102, 153, 204, 1) variable
#FFDD55 RGB(255, 221, 85) RGBA(255, 221, 85, 1) variable.function
#FFDD55 RGB(255, 221, 85) RGBA(255, 221, 85, 1) variable.language
#FFDD55 RGB(255, 221, 85) RGBA(255, 221, 85, 1) variable.name
#FFDD55 RGB(255, 221, 85) RGBA(255, 221, 85, 1) variable.other
#FFDD55 RGB(255, 221, 85) RGBA(255, 221, 85, 1) variable.other.constant
#FFDD55 RGB(255, 221, 85) RGBA(255, 221, 85, 1) variable.other.property
#FFDD55 RGB(255, 221, 85) RGBA(255, 221, 85, 1) variable.other.readwrite
#FFDD55 RGB(255, 221, 85) RGBA(255, 221, 85, 1) variable.parameter
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1)