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
JetJet-Light
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
#9E9E9E RGB(158, 158, 158) RGBA(158, 158, 158, 1) comment.block
#9E9E9E RGB(158, 158, 158) RGBA(158, 158, 158, 1) comment.block.documentation
#9E9E9E RGB(158, 158, 158) RGBA(158, 158, 158, 1) comment.line
#9E9E9E RGB(158, 158, 158) RGBA(158, 158, 158, 1) constant
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) constant.character
#00BEAC RGB(0, 190, 172) RGBA(0, 190, 172, 1) constant.character.escape
#00BEAC RGB(0, 190, 172) RGBA(0, 190, 172, 1) constant.numeric
#C62828 RGB(198, 40, 40) RGBA(198, 40, 40, 1) constant.numeric.integer
#C62828 RGB(198, 40, 40) RGBA(198, 40, 40, 1) constant.numeric.float
#C62828 RGB(198, 40, 40) RGBA(198, 40, 40, 1) constant.numeric.hex
#C62828 RGB(198, 40, 40) RGBA(198, 40, 40, 1) constant.numeric.octal
#C62828 RGB(198, 40, 40) RGBA(198, 40, 40, 1) constant.other
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) constant.other.placeholder
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) entity
#009B40 RGB(0, 155, 64) RGBA(0, 155, 64, 1) entity.name
#009B40 RGB(0, 155, 64) RGBA(0, 155, 64, 1) entity.name.class
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) entity.name.function
#009B40 RGB(0, 155, 64) RGBA(0, 155, 64, 1) entity.name.section
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) entity.name.tag
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) entity.name.type
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) entity.name.type.enum
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) entity.name.type.interface
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) entity.name.type.struct
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) entity.other
#5263C3 RGB(82, 99, 195) RGBA(82, 99, 195, 1) entity.other.attribute-name
#009B40 RGB(0, 155, 64) RGBA(0, 155, 64, 1) entity.other.inherited-class
#5263C3 RGB(82, 99, 195) RGBA(82, 99, 195, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) keyword.control
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) keyword.control.flow
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) keyword.operator
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) keyword.operator.new
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) keyword.operator.assignment
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) keyword.operator.arithmetic
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) keyword.operator.logical
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) keyword.other
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) markup
#F06292 RGB(240, 98, 146) RGBA(240, 98, 146, 1) markup.bold
#009B40 RGB(0, 155, 64) RGBA(0, 155, 64, 1) markup.deleted
#C82829 RGB(200, 40, 41) RGBA(200, 40, 41, 1) markup.heading
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) markup.inline.raw
#F06292 RGB(240, 98, 146) RGBA(240, 98, 146, 1) markup.inserted
#718C00 RGB(113, 140, 0) RGBA(113, 140, 0, 1) markup.italic
#009B40 RGB(0, 155, 64) RGBA(0, 155, 64, 1) markup.list
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) markup.list.numbered
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) markup.list.unnumbered
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) markup.quote
#F06292 RGB(240, 98, 146) RGBA(240, 98, 146, 1) meta
#3E999F RGB(62, 153, 159) RGBA(62, 153, 159, 1) meta.function-call
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) storage
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) storage.modifier
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) storage.type
#3D5AFE RGB(61, 90, 254) RGBA(61, 90, 254, 1) string
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) string.interpolated
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) string.other
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) string.quoted
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) string.quoted.double
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) string.quoted.other
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) string.quoted.single
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) string.quoted.triple
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) string.regexp
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) string.template
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) string.unquoted
#D500F9 RGB(213, 0, 249) RGBA(213, 0, 249, 1) support
#F06292 RGB(240, 98, 146) RGBA(240, 98, 146, 1) support.class
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) support.constant
#F06292 RGB(240, 98, 146) RGBA(240, 98, 146, 1) support.function
#009B40 RGB(0, 155, 64) RGBA(0, 155, 64, 1) support.other
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) support.type
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) support.type.primitive
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) support.type.property-name
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) support.variable
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) variable
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) variable.function
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) variable.language
#E96300 RGB(233, 99, 0) RGBA(233, 99, 0, 1) variable.name
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) variable.other
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) variable.other.constant
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) variable.other.property
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) variable.other.readwrite
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) variable.parameter
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1)