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
ILMShell
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
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block.documentation
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.line
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) constant
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) constant.character
#7ACC7C RGB(122, 204, 124) RGBA(122, 204, 124, 1) constant.character.escape
#7ACC7C RGB(122, 204, 124) RGBA(122, 204, 124, 1) constant.numeric
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) constant.numeric.integer
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) constant.numeric.float
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) constant.numeric.hex
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) constant.numeric.octal
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) constant.other
#7ACC7C RGB(122, 204, 124) RGBA(122, 204, 124, 1) constant.other.placeholder
#7ACC7C RGB(122, 204, 124) RGBA(122, 204, 124, 1) constant.regexp
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) constant.rgb-value
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) entity
#E347EC RGB(227, 71, 236) RGBA(227, 71, 236, 1) entity.name
#61C9BB RGB(97, 201, 187) RGBA(97, 201, 187, 1) entity.name.class
#61C9BB RGB(97, 201, 187) RGBA(97, 201, 187, 1) entity.name.function
#61C9BB RGB(97, 201, 187) RGBA(97, 201, 187, 1) entity.name.method
#61C9BB RGB(97, 201, 187) RGBA(97, 201, 187, 1) entity.name.namespace
#61C9BB RGB(97, 201, 187) RGBA(97, 201, 187, 1) entity.name.section
#61C9BB RGB(97, 201, 187) RGBA(97, 201, 187, 1) entity.name.selector
#61C9BB RGB(97, 201, 187) RGBA(97, 201, 187, 1) entity.name.tag
#61C9BB RGB(97, 201, 187) RGBA(97, 201, 187, 1) entity.name.type
#E347EC RGB(227, 71, 236) RGBA(227, 71, 236, 1) entity.name.type.enum
#E347EC RGB(227, 71, 236) RGBA(227, 71, 236, 1) entity.name.type.interface
#E347EC RGB(227, 71, 236) RGBA(227, 71, 236, 1) entity.name.type.struct
#E347EC RGB(227, 71, 236) RGBA(227, 71, 236, 1) invalid
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) invalid.deprecated
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) invalid.illegal
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) keyword
#7ACC7C RGB(122, 204, 124) RGBA(122, 204, 124, 1) keyword.control
#7ACC7C RGB(122, 204, 124) RGBA(122, 204, 124, 1) keyword.control.flow
#7ACC7C RGB(122, 204, 124) RGBA(122, 204, 124, 1) keyword.operator
#FFAD59 RGB(255, 173, 89) RGBA(255, 173, 89, 1) keyword.operator.new
#FFAD59 RGB(255, 173, 89) RGBA(255, 173, 89, 1) keyword.operator.assignment
#FFAD59 RGB(255, 173, 89) RGBA(255, 173, 89, 1) keyword.operator.arithmetic
#FFAD59 RGB(255, 173, 89) RGBA(255, 173, 89, 1) keyword.operator.logical
#FFAD59 RGB(255, 173, 89) RGBA(255, 173, 89, 1) keyword.other
#7ACC7C RGB(122, 204, 124) RGBA(122, 204, 124, 1) markup
#FFA040 RGB(255, 160, 64) RGBA(255, 160, 64, 1) markup.changed
#FFA040 RGB(255, 160, 64) RGBA(255, 160, 64, 1) markup.deleted
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) markup.inserted
#7ACC7C RGB(122, 204, 124) RGBA(122, 204, 124, 1) meta
#99FEFF RGB(153, 254, 255) RGBA(153, 254, 255, 1) storage
#FFFFB3 RGB(255, 255, 179) RGBA(255, 255, 179, 1) storage.modifier
#FFFFB3 RGB(255, 255, 179) RGBA(255, 255, 179, 1) storage.type
#FFFFB3 RGB(255, 255, 179) RGBA(255, 255, 179, 1) string
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) string.interpolated
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) string.other
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) string.quoted
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) string.quoted.double
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) string.quoted.other
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) string.quoted.single
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) string.quoted.triple
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) string.regexp
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) string.template
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) string.unquoted
#FF9580 RGB(255, 149, 128) RGBA(255, 149, 128, 1) support
#9582E3 RGB(149, 130, 227) RGBA(149, 130, 227, 1) support.function
#9582E3 RGB(149, 130, 227) RGBA(149, 130, 227, 1) variable
#58BAF5 RGB(88, 186, 245) RGBA(88, 186, 245, 1) variable.function
#58BAF5 RGB(88, 186, 245) RGBA(88, 186, 245, 1) variable.language
#58BAF5 RGB(88, 186, 245) RGBA(88, 186, 245, 1) variable.name
#58BAF5 RGB(88, 186, 245) RGBA(88, 186, 245, 1) variable.other
#58BAF5 RGB(88, 186, 245) RGBA(88, 186, 245, 1) variable.other.constant
#58BAF5 RGB(88, 186, 245) RGBA(88, 186, 245, 1) variable.other.property
#58BAF5 RGB(88, 186, 245) RGBA(88, 186, 245, 1) variable.other.readwrite
#58BAF5 RGB(88, 186, 245) RGBA(88, 186, 245, 1) variable.parameter
#58BAF5 RGB(88, 186, 245) RGBA(88, 186, 245, 1)