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
Wombatish
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
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) comment.block
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) comment.block.documentation
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) comment.line
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) constant
#269186 RGB(38, 145, 134) RGBA(38, 145, 134, 1) constant.character
#65D9DB RGB(101, 217, 219) RGBA(101, 217, 219, 1) constant.character.escape
#65D9DB RGB(101, 217, 219) RGBA(101, 217, 219, 1) constant.numeric
#65D9DB RGB(101, 217, 219) RGBA(101, 217, 219, 1) constant.numeric.integer
#65D9DB RGB(101, 217, 219) RGBA(101, 217, 219, 1) constant.numeric.float
#65D9DB RGB(101, 217, 219) RGBA(101, 217, 219, 1) constant.numeric.hex
#65D9DB RGB(101, 217, 219) RGBA(101, 217, 219, 1) constant.numeric.octal
#65D9DB RGB(101, 217, 219) RGBA(101, 217, 219, 1) constant.other
#65D9DB RGB(101, 217, 219) RGBA(101, 217, 219, 1) constant.other.placeholder
#65D9DB RGB(101, 217, 219) RGBA(101, 217, 219, 1) entity
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.name
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.name.class
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) entity.name.function
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) entity.name.selector
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name.tag
#82CFFF RGB(130, 207, 255) RGBA(130, 207, 255, 1) entity.name.type
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) entity.name.type.enum
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) entity.name.type.interface
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) entity.name.type.struct
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) entity.other
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.other.attribute-name
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.other.inherited-class
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) keyword
#D5F505 RGB(213, 245, 5) RGBA(213, 245, 5, 1) keyword.control
#D5F505 RGB(213, 245, 5) RGBA(213, 245, 5, 1) keyword.control.flow
#D5F505 RGB(213, 245, 5) RGBA(213, 245, 5, 1) keyword.operator
#44BCFC RGB(68, 188, 252) RGBA(68, 188, 252, 1) keyword.operator.new
#44BCFC RGB(68, 188, 252) RGBA(68, 188, 252, 1) keyword.operator.assignment
#44BCFC RGB(68, 188, 252) RGBA(68, 188, 252, 1) keyword.operator.arithmetic
#44BCFC RGB(68, 188, 252) RGBA(68, 188, 252, 1) keyword.operator.logical
#44BCFC RGB(68, 188, 252) RGBA(68, 188, 252, 1) keyword.other
#D5F505 RGB(213, 245, 5) RGBA(213, 245, 5, 1) markup
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) markup.changed
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) markup.deleted
#FF5C64 RGB(255, 92, 100) RGBA(255, 92, 100, 1) markup.inserted
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) meta
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.block
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.cast
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.class
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.function
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.function-call
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.preprocessor
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.return-type
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.selector
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.tag
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.type.annotation
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) meta.type
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) storage
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) storage.modifier
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) storage.type
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) string
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) string.interpolated
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) string.other
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) string.quoted
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) string.quoted.double
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) string.quoted.other
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) string.quoted.single
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) string.quoted.triple
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) string.regexp
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) string.template
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) string.unquoted
#C7D485 RGB(199, 212, 133) RGBA(199, 212, 133, 1) support
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) support.class
#82E699 RGB(130, 230, 153) RGBA(130, 230, 153, 1) support.constant
#FF5C64 RGB(255, 92, 100) RGBA(255, 92, 100, 1) support.function
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) support.other
#F2B888 RGB(242, 184, 136) RGBA(242, 184, 136, 1) support.type
#82E699 RGB(130, 230, 153) RGBA(130, 230, 153, 1) support.type.primitive
#82E699 RGB(130, 230, 153) RGBA(130, 230, 153, 1) support.type.property-name
#82E699 RGB(130, 230, 153) RGBA(130, 230, 153, 1) support.variable
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) variable
#44BCFC RGB(68, 188, 252) RGBA(68, 188, 252, 1) variable.other
#B282FA RGB(178, 130, 250) RGBA(178, 130, 250, 1) variable.other.constant
#B282FA RGB(178, 130, 250) RGBA(178, 130, 250, 1) variable.other.property
#B282FA RGB(178, 130, 250) RGBA(178, 130, 250, 1) variable.other.readwrite
#B282FA RGB(178, 130, 250) RGBA(178, 130, 250, 1) variable.parameter
#B282FA RGB(178, 130, 250) RGBA(178, 130, 250, 1)