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
Welded
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
#BBAB93 RGB(187, 171, 147) RGBA(187, 171, 147, 1) comment.block
#BBAB93 RGB(187, 171, 147) RGBA(187, 171, 147, 1) comment.block.documentation
#BBAB93 RGB(187, 171, 147) RGBA(187, 171, 147, 1) comment.line
#BBAB93 RGB(187, 171, 147) RGBA(187, 171, 147, 1) constant
#542C9C RGB(84, 44, 156) RGBA(84, 44, 156, 1) constant.character
#542C9C RGB(84, 44, 156) RGBA(84, 44, 156, 1) constant.character.escape
#542C9C RGB(84, 44, 156) RGBA(84, 44, 156, 1) constant.numeric
#610E87 RGB(97, 14, 135) RGBA(97, 14, 135, 1) constant.numeric.integer
#610E87 RGB(97, 14, 135) RGBA(97, 14, 135, 1) constant.numeric.float
#610E87 RGB(97, 14, 135) RGBA(97, 14, 135, 1) constant.numeric.hex
#610E87 RGB(97, 14, 135) RGBA(97, 14, 135, 1) constant.numeric.octal
#610E87 RGB(97, 14, 135) RGBA(97, 14, 135, 1) constant.other
#542C9C RGB(84, 44, 156) RGBA(84, 44, 156, 1) constant.other.placeholder
#542C9C RGB(84, 44, 156) RGBA(84, 44, 156, 1) entity
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) entity.name
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) entity.name.class
#FA8016 RGB(250, 128, 22) RGBA(250, 128, 22, 1) entity.name.function
#008EB8 RGB(0, 142, 184) RGBA(0, 142, 184, 1) entity.name.tag
#B15C11 RGB(177, 92, 17) RGBA(177, 92, 17, 1) entity.other
#B15C11 RGB(177, 92, 17) RGBA(177, 92, 17, 1) entity.other.attribute-name
#B15C11 RGB(177, 92, 17) RGBA(177, 92, 17, 1) entity.other.inherited-class
#A35816 RGB(163, 88, 22) RGBA(163, 88, 22, 1) invalid
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) keyword.control
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) keyword.control.flow
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) keyword.operator
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) keyword.operator.new
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) keyword.operator.assignment
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) keyword.operator.arithmetic
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) keyword.operator.logical
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) keyword.other
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 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
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.inserted
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) meta
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) storage
#CC896D RGB(204, 137, 109) RGBA(204, 137, 109, 1) storage.modifier
#CC896D RGB(204, 137, 109) RGBA(204, 137, 109, 1) storage.type
#DA951E RGB(218, 149, 30) RGBA(218, 149, 30, 1) string
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) string.interpolated
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) string.other
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) string.quoted
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) string.quoted.double
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) string.quoted.other
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) string.quoted.single
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) string.quoted.triple
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) string.regexp
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) string.template
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) string.unquoted
#921B18 RGB(146, 27, 24) RGBA(146, 27, 24, 1) support
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) support.class
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) support.constant
#26A8D4 RGB(38, 168, 212) RGBA(38, 168, 212, 1) support.function
#0389B7 RGB(3, 137, 183) RGBA(3, 137, 183, 1) support.other
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) support.type
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) support.type.primitive
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) support.type.property-name
#037CA0 RGB(3, 124, 160) RGBA(3, 124, 160, 1) variable
#735C4F RGB(115, 92, 79) RGBA(115, 92, 79, 1) variable.function
#735C4F RGB(115, 92, 79) RGBA(115, 92, 79, 1) variable.language
#735C4F RGB(115, 92, 79) RGBA(115, 92, 79, 1) variable.name
#735C4F RGB(115, 92, 79) RGBA(115, 92, 79, 1) variable.other
#735C4F RGB(115, 92, 79) RGBA(115, 92, 79, 1) variable.other.constant
#735C4F RGB(115, 92, 79) RGBA(115, 92, 79, 1) variable.other.property
#735C4F RGB(115, 92, 79) RGBA(115, 92, 79, 1) variable.other.readwrite
#735C4F RGB(115, 92, 79) RGBA(115, 92, 79, 1) variable.parameter
#916239 RGB(145, 98, 57) RGBA(145, 98, 57, 1)