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
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
#7285B7 RGB(114, 133, 183) RGBA(114, 133, 183, 1) comment.block
#7285B7 RGB(114, 133, 183) RGBA(114, 133, 183, 1) comment.block.documentation
#7285B7 RGB(114, 133, 183) RGBA(114, 133, 183, 1) comment.line
#7285B7 RGB(114, 133, 183) RGBA(114, 133, 183, 1) constant
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) constant.character
#FF80AB RGB(255, 128, 171) RGBA(255, 128, 171, 1) constant.character.escape
#FF80AB RGB(255, 128, 171) RGBA(255, 128, 171, 1) constant.numeric
#CDDC39 RGB(205, 220, 57) RGBA(205, 220, 57, 1) constant.numeric.integer
#CDDC39 RGB(205, 220, 57) RGBA(205, 220, 57, 1) constant.numeric.float
#CDDC39 RGB(205, 220, 57) RGBA(205, 220, 57, 1) constant.numeric.hex
#CDDC39 RGB(205, 220, 57) RGBA(205, 220, 57, 1) constant.numeric.octal
#CDDC39 RGB(205, 220, 57) RGBA(205, 220, 57, 1) constant.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.other.placeholder
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) entity.name
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) entity.name.class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.function
#32EB98 RGB(50, 235, 152) RGBA(50, 235, 152, 1) entity.name.section
#FAFA37 RGB(250, 250, 55) RGBA(250, 250, 55, 1) entity.name.tag
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) entity.name.type
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.type.enum
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.type.interface
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.type.struct
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.other
#7AF0D2 RGB(122, 240, 210) RGBA(122, 240, 210, 1) entity.other.attribute-name
#32EB98 RGB(50, 235, 152) RGBA(50, 235, 152, 1) entity.other.inherited-class
#7AF0D2 RGB(122, 240, 210) RGBA(122, 240, 210, 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
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) keyword.control
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) keyword.control.flow
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) keyword.operator
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) keyword.operator.new
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) keyword.operator.assignment
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) keyword.operator.arithmetic
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) keyword.operator.logical
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) keyword.other
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) markup
#FF9DA4 RGB(255, 157, 164) RGBA(255, 157, 164, 1) markup.bold
#FFC58F RGB(255, 197, 143) RGBA(255, 197, 143, 1) markup.deleted
#C82829 RGB(200, 40, 41) RGBA(200, 40, 41, 1) markup.heading
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) markup.inline.raw
#FF9DA4 RGB(255, 157, 164) RGBA(255, 157, 164, 1) markup.inserted
#718C00 RGB(113, 140, 0) RGBA(113, 140, 0, 1) markup.italic
#FFC58F RGB(255, 197, 143) RGBA(255, 197, 143, 1) markup.list
#BBDAFF RGB(187, 218, 255) RGBA(187, 218, 255, 1) markup.list.numbered
#BBDAFF RGB(187, 218, 255) RGBA(187, 218, 255, 1) markup.list.unnumbered
#BBDAFF RGB(187, 218, 255) RGBA(187, 218, 255, 1) markup.quote
#FFC58F RGB(255, 197, 143) RGBA(255, 197, 143, 1) meta
#3E999F RGB(62, 153, 159) RGBA(62, 153, 159, 1) meta.function-call
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) storage.modifier
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) storage.type
#35C7FF RGB(53, 199, 255) RGBA(53, 199, 255, 1) string
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) string.interpolated
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) string.other
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) string.quoted
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) string.quoted.double
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) string.quoted.other
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) string.quoted.single
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) string.quoted.triple
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) string.regexp
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) string.template
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) string.unquoted
#FFCA00 RGB(255, 202, 0) RGBA(255, 202, 0, 1) support
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) support.class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.constant
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) support.function
#32EB98 RGB(50, 235, 152) RGBA(50, 235, 152, 1) support.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.type
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.type.primitive
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.type.property-name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.variable
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.language
#EA80FC RGB(234, 128, 252) RGBA(234, 128, 252, 1) variable.name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.property
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.readwrite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.parameter
#FF9800 RGB(255, 152, 0) RGBA(255, 152, 0, 1)