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
ILMHackers
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
#F2F636 RGB(242, 246, 54) RGBA(242, 246, 54, 1) comment.block
#F2F636 RGB(242, 246, 54) RGBA(242, 246, 54, 1) comment.block.documentation
#F2F636 RGB(242, 246, 54) RGBA(242, 246, 54, 1) comment.line
#F2F636 RGB(242, 246, 54) RGBA(242, 246, 54, 1) constant
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.character
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.character.escape
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.numeric
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.numeric.integer
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.numeric.float
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.numeric.hex
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.numeric.octal
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.other
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.other.placeholder
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.regexp
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) constant.rgb-value
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) entity
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) entity.name
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) entity.name.class
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) entity.name.function
#F1F61E RGB(241, 246, 30) RGBA(241, 246, 30, 1) entity.name.section
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) entity.name.tag
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) entity.name.type
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) entity.other
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) entity.other.attribute-name
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) entity.other.inherited-class
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) invalid
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) invalid.deprecated
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) invalid.illegal
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) keyword
#F608EE RGB(246, 8, 238) RGBA(246, 8, 238, 1) keyword.control
#F608EE RGB(246, 8, 238) RGBA(246, 8, 238, 1) keyword.control.flow
#F608EE RGB(246, 8, 238) RGBA(246, 8, 238, 1) keyword.operator
#D51313 RGB(213, 19, 19) RGBA(213, 19, 19, 1) keyword.operator.new
#D51313 RGB(213, 19, 19) RGBA(213, 19, 19, 1) keyword.operator.assignment
#D51313 RGB(213, 19, 19) RGBA(213, 19, 19, 1) keyword.operator.arithmetic
#D51313 RGB(213, 19, 19) RGBA(213, 19, 19, 1) keyword.operator.logical
#D51313 RGB(213, 19, 19) RGBA(213, 19, 19, 1) keyword.other
#F608EE RGB(246, 8, 238) RGBA(246, 8, 238, 1) markup
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) markup.bold
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) markup.changed
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) markup.deleted
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) markup.inserted
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) markup.italic
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) markup.list
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) markup.list.numbered
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) markup.list.unnumbered
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) markup.quote
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) markup.raw
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) meta
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) meta.class
#4CD454 RGB(76, 212, 84) RGBA(76, 212, 84, 1) meta.selector
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) punctuation.definition.comment
#F2F636 RGB(242, 246, 54) RGBA(242, 246, 54, 1) punctuation.definition.string.begin
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) punctuation.definition.string.end
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) storage
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) storage.modifier
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) storage.type
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.interpolated
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.other
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.quoted
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.quoted.double
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.quoted.other
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.quoted.single
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.quoted.triple
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.regexp
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.template
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.unquoted
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) support
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) support.class
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) support.function
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) variable
#0E8114 RGB(14, 129, 20) RGBA(14, 129, 20, 1) variable.function
#0E8114 RGB(14, 129, 20) RGBA(14, 129, 20, 1) variable.language
#0E8114 RGB(14, 129, 20) RGBA(14, 129, 20, 1) variable.name
#0E8114 RGB(14, 129, 20) RGBA(14, 129, 20, 1) variable.other
#0E8114 RGB(14, 129, 20) RGBA(14, 129, 20, 1) variable.other.constant
#0E8114 RGB(14, 129, 20) RGBA(14, 129, 20, 1) variable.other.property
#0E8114 RGB(14, 129, 20) RGBA(14, 129, 20, 1) variable.other.readwrite
#0E8114 RGB(14, 129, 20) RGBA(14, 129, 20, 1) variable.parameter
#0E8114 RGB(14, 129, 20) RGBA(14, 129, 20, 1)