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
Flat
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
#919D9F RGB(145, 157, 159) RGBA(145, 157, 159, 1) comment.block
#919D9F RGB(145, 157, 159) RGBA(145, 157, 159, 1) comment.block.documentation
#919D9F RGB(145, 157, 159) RGBA(145, 157, 159, 1) comment.line
#919D9F RGB(145, 157, 159) RGBA(145, 157, 159, 1) constant
#ED912C RGB(237, 145, 44) RGBA(237, 145, 44, 1) constant.character
#ED912C RGB(237, 145, 44) RGBA(237, 145, 44, 1) constant.character.escape
#ED912C RGB(237, 145, 44) RGBA(237, 145, 44, 1) constant.numeric
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) constant.numeric.integer
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) constant.numeric.float
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) constant.numeric.hex
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) constant.numeric.octal
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) constant.other
#ED912C RGB(237, 145, 44) RGBA(237, 145, 44, 1) constant.other.placeholder
#ED912C RGB(237, 145, 44) RGBA(237, 145, 44, 1) entity
#A15EBB RGB(161, 94, 187) RGBA(161, 94, 187, 1) entity.name
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) entity.name.class
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) entity.name.function
#A15EBB RGB(161, 94, 187) RGBA(161, 94, 187, 1) entity.name.tag
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) entity.other
#A15EBB RGB(161, 94, 187) RGBA(161, 94, 187, 1) entity.other.attribute-name
#A15EBB RGB(161, 94, 187) RGBA(161, 94, 187, 1) entity.other.inherited-class
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) invalid
#CD4E38 RGB(205, 78, 56) RGBA(205, 78, 56, 1) invalid.deprecated
#A15EBB RGB(161, 94, 187) RGBA(161, 94, 187, 1) invalid.illegal
#CD4E38 RGB(205, 78, 56) RGBA(205, 78, 56, 1) keyword
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) keyword.control
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) keyword.control.flow
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) keyword.operator
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) keyword.operator.new
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) keyword.operator.assignment
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) keyword.operator.arithmetic
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) keyword.operator.logical
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) keyword.other
#D35400 RGB(211, 84, 0) RGBA(211, 84, 0, 1) storage
#CD4E38 RGB(205, 78, 56) RGBA(205, 78, 56, 1) storage.modifier
#CD4E38 RGB(205, 78, 56) RGBA(205, 78, 56, 1) storage.type
#C0392B RGB(192, 57, 43) RGBA(192, 57, 43, 1) string
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) string.interpolated
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) string.other
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) string.quoted
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) string.quoted.double
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) string.quoted.other
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) string.quoted.single
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) string.quoted.triple
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) string.regexp
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) string.template
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) string.unquoted
#05AD97 RGB(5, 173, 151) RGBA(5, 173, 151, 1) support
#395063 RGB(57, 80, 99) RGBA(57, 80, 99, 1) support.class
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) support.constant
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) support.function
#3092C6 RGB(48, 146, 198) RGBA(48, 146, 198, 1) support.other
#395063 RGB(57, 80, 99) RGBA(57, 80, 99, 1) support.type
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) support.type.primitive
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) support.type.property-name
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) variable
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) variable.function
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) variable.language
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) variable.name
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) variable.other
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) variable.other.constant
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) variable.other.property
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) variable.other.readwrite
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) variable.parameter
#F7AB13 RGB(247, 171, 19) RGBA(247, 171, 19, 1)