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
Merbivore_Soft
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
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) comment.block
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) comment.block.documentation
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) comment.line
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) constant
#68C1D8 RGB(104, 193, 216) RGBA(104, 193, 216, 1) constant.character
#68C1D8 RGB(104, 193, 216) RGBA(104, 193, 216, 1) constant.character.escape
#B3E5B4 RGB(179, 229, 180) RGBA(179, 229, 180, 1) constant.numeric
#7FC578 RGB(127, 197, 120) RGBA(127, 197, 120, 1) constant.numeric.integer
#7FC578 RGB(127, 197, 120) RGBA(127, 197, 120, 1) constant.numeric.float
#7FC578 RGB(127, 197, 120) RGBA(127, 197, 120, 1) constant.numeric.hex
#7FC578 RGB(127, 197, 120) RGBA(127, 197, 120, 1) constant.numeric.octal
#7FC578 RGB(127, 197, 120) RGBA(127, 197, 120, 1) constant.other
#68C1D8 RGB(104, 193, 216) RGBA(104, 193, 216, 1) constant.other.placeholder
#68C1D8 RGB(104, 193, 216) RGBA(104, 193, 216, 1) constant.regexp
#68C1D8 RGB(104, 193, 216) RGBA(104, 193, 216, 1) constant.rgb-value
#68C1D8 RGB(104, 193, 216) RGBA(104, 193, 216, 1) entity
#EAF1A3 RGB(234, 241, 163) RGBA(234, 241, 163, 1) entity.name
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) entity.name.tag
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) entity.other
#EAF1A3 RGB(234, 241, 163) RGBA(234, 241, 163, 1) entity.other.attribute-name
#EAF1A3 RGB(234, 241, 163) RGBA(234, 241, 163, 1) entity.other.inherited-class
#C984CD RGB(201, 132, 205) RGBA(201, 132, 205, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) keyword.control
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) keyword.control.flow
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) keyword.operator
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) keyword.operator.new
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) keyword.operator.assignment
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) keyword.operator.arithmetic
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) keyword.operator.logical
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) keyword.other
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) markup
#E6E1DC RGB(230, 225, 220) RGBA(230, 225, 220, 1) markup.deleted
#E6E1DC RGB(230, 225, 220) RGBA(230, 225, 220, 1) markup.inserted
#E6E1DC RGB(230, 225, 220) RGBA(230, 225, 220, 1) meta
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) meta.block
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) meta.cast
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) meta.class
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) meta.function
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) meta.function-call
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) meta.preprocessor
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) meta.return-type
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) meta.selector
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) meta.tag
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) meta.type.annotation
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) meta.type
#AC4BB8 RGB(172, 75, 184) RGBA(172, 75, 184, 1) storage
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) storage.modifier
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) storage.type
#FC803A RGB(252, 128, 58) RGBA(252, 128, 58, 1) string
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) string.interpolated
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) string.other
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) string.quoted
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) string.quoted.double
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) string.quoted.other
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) string.quoted.single
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) string.quoted.triple
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) string.regexp
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) string.template
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) string.unquoted
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) support
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) support.constant
#8EC65F RGB(142, 198, 95) RGBA(142, 198, 95, 1) support.type
#68C1D8 RGB(104, 193, 216) RGBA(104, 193, 216, 1) support.type.primitive
#68C1D8 RGB(104, 193, 216) RGBA(104, 193, 216, 1) support.type.property-name
#68C1D8 RGB(104, 193, 216) RGBA(104, 193, 216, 1)