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
Predawn Twilight
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#282828 RGB(40, 40, 40) RGBA(40, 40, 40, 1) editor.foreground
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) editor.inactiveSelectionBackground
#3C3C3C RGB(60, 60, 60) RGBA(60, 60, 60, 1) editor.lineHighlightBackground
#232323 RGB(35, 35, 35) RGBA(35, 35, 35, 1) editor.selectionBackground
#4C4C4C RGB(76, 76, 76) RGBA(76, 76, 76, 1) editorCursor.foreground
#F18260 RGB(241, 130, 96) RGBA(241, 130, 96, 1) editorIndentGuide.background
#F1826025 RGB(241, 130, 96) RGBA(241, 130, 96, 0.145) editorWhitespace.foreground
#F18260 RGB(241, 130, 96) RGBA(241, 130, 96, 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
#5F5A60 RGB(95, 90, 96) RGBA(95, 90, 96, 1) comment.block
#5F5A60 RGB(95, 90, 96) RGBA(95, 90, 96, 1) comment.block.documentation
#5F5A60 RGB(95, 90, 96) RGBA(95, 90, 96, 1) comment.line
#5F5A60 RGB(95, 90, 96) RGBA(95, 90, 96, 1) constant
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) constant.character
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) constant.character.escape
#CF7D34 RGB(207, 125, 52) RGBA(207, 125, 52, 1) constant.numeric
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) constant.numeric.integer
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) constant.numeric.float
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) constant.numeric.hex
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) constant.numeric.octal
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) constant.other
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) constant.other.placeholder
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) constant.regexp
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) constant.rgb-value
#CA7840 RGB(202, 120, 64) RGBA(202, 120, 64, 1) entity
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name.class
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name.function
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name.method
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name.namespace
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name.section
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name.selector
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name.tag
#CDA869 RGB(205, 168, 105) RGBA(205, 168, 105, 1) entity.name.type
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name.type.enum
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name.type.interface
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.name.type.struct
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.other
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.other.attribute-name
#E0C589 RGB(224, 197, 137) RGBA(224, 197, 137, 1) entity.other.inherited-class
#9B5C2E RGB(155, 92, 46) RGBA(155, 92, 46, 1) invalid
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) invalid.deprecated
#D2A8A1 RGB(210, 168, 161) RGBA(210, 168, 161, 1) invalid.illegal
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) keyword
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.control
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.control.flow
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.new
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.assignment
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.arithmetic
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.logical
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.other
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) markup
#565656 RGB(86, 86, 86) RGBA(86, 86, 86, 1) markup.changed
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) markup.deleted
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) markup.heading
#CF6A4C RGB(207, 106, 76) RGBA(207, 106, 76, 1) markup.inserted
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) markup.list
#F9EE98 RGB(249, 238, 152) RGBA(249, 238, 152, 1) markup.list.numbered
#F9EE98 RGB(249, 238, 152) RGBA(249, 238, 152, 1) markup.list.unnumbered
#F9EE98 RGB(249, 238, 152) RGBA(249, 238, 152, 1) meta
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) meta.preprocessor
#8996A8 RGB(137, 150, 168) RGBA(137, 150, 168, 1) meta.tag
#AC885B RGB(172, 136, 91) RGBA(172, 136, 91, 1) storage
#F9EE98 RGB(249, 238, 152) RGBA(249, 238, 152, 1) storage.modifier
#F9EE98 RGB(249, 238, 152) RGBA(249, 238, 152, 1) storage.type
#F9EE98 RGB(249, 238, 152) RGBA(249, 238, 152, 1) string
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.interpolated
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.other
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.double
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.other
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.single
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.triple
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.regexp
#E9C062 RGB(233, 192, 98) RGBA(233, 192, 98, 1) string.template
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.unquoted
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) support
#9B859D RGB(155, 133, 157) RGBA(155, 133, 157, 1) support.class
#9B859D RGB(155, 133, 157) RGBA(155, 133, 157, 1) support.constant
#CF6A4C RGB(207, 106, 76) RGBA(207, 106, 76, 1) support.function
#DAD085 RGB(218, 208, 133) RGBA(218, 208, 133, 1) support.other
#9B859D RGB(155, 133, 157) RGBA(155, 133, 157, 1) support.type
#9B859D RGB(155, 133, 157) RGBA(155, 133, 157, 1) support.type.primitive
#9B859D RGB(155, 133, 157) RGBA(155, 133, 157, 1) support.type.property-name
#9B859D RGB(155, 133, 157) RGBA(155, 133, 157, 1) support.variable
#9B859D RGB(155, 133, 157) RGBA(155, 133, 157, 1) variable
#8A9A95 RGB(138, 154, 149) RGBA(138, 154, 149, 1) variable.function
#8A9A95 RGB(138, 154, 149) RGBA(138, 154, 149, 1) variable.language
#8A9A95 RGB(138, 154, 149) RGBA(138, 154, 149, 1) variable.name
#8A9A95 RGB(138, 154, 149) RGBA(138, 154, 149, 1) variable.other
#8A9A95 RGB(138, 154, 149) RGBA(138, 154, 149, 1) variable.other.constant
#8A9A95 RGB(138, 154, 149) RGBA(138, 154, 149, 1) variable.other.property
#8A9A95 RGB(138, 154, 149) RGBA(138, 154, 149, 1) variable.other.readwrite
#8A9A95 RGB(138, 154, 149) RGBA(138, 154, 149, 1) variable.parameter
#8A9A95 RGB(138, 154, 149) RGBA(138, 154, 149, 1)