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
Spoon
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
#A8A6A6 RGB(168, 166, 166) RGBA(168, 166, 166, 1) comment.block
#A8A6A6 RGB(168, 166, 166) RGBA(168, 166, 166, 1) comment.block.documentation
#A8A6A6 RGB(168, 166, 166) RGBA(168, 166, 166, 1) comment.line
#A8A6A6 RGB(168, 166, 166) RGBA(168, 166, 166, 1) constant
#FAC664 RGB(250, 198, 100) RGBA(250, 198, 100, 1) constant.character
#FAC664 RGB(250, 198, 100) RGBA(250, 198, 100, 1) constant.character.escape
#FAC664 RGB(250, 198, 100) RGBA(250, 198, 100, 1) constant.numeric
#FF7FC3 RGB(255, 127, 195) RGBA(255, 127, 195, 1) constant.numeric.integer
#FF7FC3 RGB(255, 127, 195) RGBA(255, 127, 195, 1) constant.numeric.float
#FF7FC3 RGB(255, 127, 195) RGBA(255, 127, 195, 1) constant.numeric.hex
#FF7FC3 RGB(255, 127, 195) RGBA(255, 127, 195, 1) constant.numeric.octal
#FF7FC3 RGB(255, 127, 195) RGBA(255, 127, 195, 1) constant.other
#FAC664 RGB(250, 198, 100) RGBA(250, 198, 100, 1) constant.other.placeholder
#FAC664 RGB(250, 198, 100) RGBA(250, 198, 100, 1) entity
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1) entity.name
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) entity.name.class
#0084FF RGB(0, 132, 255) RGBA(0, 132, 255, 1) entity.name.function
#45F7B9 RGB(69, 247, 185) RGBA(69, 247, 185, 1) entity.name.tag
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) entity.other
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1) entity.other.attribute-name
#F2F78B RGB(242, 247, 139) RGBA(242, 247, 139, 1) entity.other.inherited-class
#C2E67E RGB(194, 230, 126) RGBA(194, 230, 126, 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
#FF5B24 RGB(255, 91, 36) RGBA(255, 91, 36, 1) keyword.control
#FF5B24 RGB(255, 91, 36) RGBA(255, 91, 36, 1) keyword.control.flow
#FF5B24 RGB(255, 91, 36) RGBA(255, 91, 36, 1) keyword.operator
#FF5B24 RGB(255, 91, 36) RGBA(255, 91, 36, 1) keyword.operator.new
#FF5B24 RGB(255, 91, 36) RGBA(255, 91, 36, 1) keyword.operator.assignment
#FF5B24 RGB(255, 91, 36) RGBA(255, 91, 36, 1) keyword.operator.arithmetic
#FF5B24 RGB(255, 91, 36) RGBA(255, 91, 36, 1) keyword.operator.logical
#FF5B24 RGB(255, 91, 36) RGBA(255, 91, 36, 1) keyword.other
#FF5B24 RGB(255, 91, 36) RGBA(255, 91, 36, 1) storage
#7C75FF RGB(124, 117, 255) RGBA(124, 117, 255, 1) storage.modifier
#7C75FF RGB(124, 117, 255) RGBA(124, 117, 255, 1) storage.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) string
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) string.interpolated
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) string.other
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) string.quoted
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) string.quoted.double
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) string.quoted.other
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) string.quoted.single
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) string.quoted.triple
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) string.regexp
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) string.template
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) string.unquoted
#FFA34B RGB(255, 163, 75) RGBA(255, 163, 75, 1) support
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.class
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.constant
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.function
#FFA6A6 RGB(255, 166, 166) RGBA(255, 166, 166, 1) support.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.primitive
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.property-name
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) variable
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1) variable.function
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1) variable.language
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1) variable.name
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1) variable.other
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1) variable.other.constant
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1) variable.other.property
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1) variable.other.readwrite
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1) variable.parameter
#D5B5FF RGB(213, 181, 255) RGBA(213, 181, 255, 1)