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
XhiTheme Color
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
#556177 RGB(85, 97, 119) RGBA(85, 97, 119, 1) comment.block
#556177 RGB(85, 97, 119) RGBA(85, 97, 119, 1) comment.block.documentation
#556177 RGB(85, 97, 119) RGBA(85, 97, 119, 1) comment.line
#556177 RGB(85, 97, 119) RGBA(85, 97, 119, 1) constant
#80B55A RGB(128, 181, 90) RGBA(128, 181, 90, 1) constant.character
#80B55A RGB(128, 181, 90) RGBA(128, 181, 90, 1) constant.character.escape
#80B55A RGB(128, 181, 90) RGBA(128, 181, 90, 1) constant.numeric
#FCA34F RGB(252, 163, 79) RGBA(252, 163, 79, 1) constant.numeric.integer
#FCA34F RGB(252, 163, 79) RGBA(252, 163, 79, 1) constant.numeric.float
#FCA34F RGB(252, 163, 79) RGBA(252, 163, 79, 1) constant.numeric.hex
#FCA34F RGB(252, 163, 79) RGBA(252, 163, 79, 1) constant.numeric.octal
#FCA34F RGB(252, 163, 79) RGBA(252, 163, 79, 1) constant.other
#80B55A RGB(128, 181, 90) RGBA(128, 181, 90, 1) constant.other.placeholder
#80B55A RGB(128, 181, 90) RGBA(128, 181, 90, 1) entity
#E2BC83 RGB(226, 188, 131) RGBA(226, 188, 131, 1) entity.name
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) entity.name.class
#ECA542 RGB(236, 165, 66) RGBA(236, 165, 66, 1) entity.name.function
#5BB0F5 RGB(91, 176, 245) RGBA(91, 176, 245, 1) entity.name.tag
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) entity.other
#E2BC83 RGB(226, 188, 131) RGBA(226, 188, 131, 1) entity.other.attribute-name
#E2BC83 RGB(226, 188, 131) RGBA(226, 188, 131, 1) entity.other.inherited-class
#E66670 RGB(230, 102, 112) RGBA(230, 102, 112, 1) invalid
#F9F9EF RGB(249, 249, 239) RGBA(249, 249, 239, 1) invalid.deprecated
#482800 RGB(72, 40, 0) RGBA(72, 40, 0, 1) invalid.illegal
#F9F9EF RGB(249, 249, 239) RGBA(249, 249, 239, 1) keyword
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) keyword.control
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) keyword.control.flow
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) keyword.operator
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) keyword.operator.new
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) keyword.operator.assignment
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) keyword.operator.arithmetic
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) keyword.operator.logical
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) keyword.other
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) markup
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) markup.bold
#FFE5B0 RGB(255, 229, 176) RGBA(255, 229, 176, 1) markup.heading
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) markup.inline.raw
#7278A1 RGB(114, 120, 161) RGBA(114, 120, 161, 1) markup.italic
#FFE5B0 RGB(255, 229, 176) RGBA(255, 229, 176, 1) markup.quote
#FFE5B0 RGB(255, 229, 176) RGBA(255, 229, 176, 1) storage
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) storage.modifier
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) storage.type
#CD71C2 RGB(205, 113, 194) RGBA(205, 113, 194, 1) string
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) string.interpolated
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) string.other
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) string.quoted
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) string.quoted.double
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) string.quoted.other
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) string.quoted.single
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) string.quoted.triple
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) string.regexp
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) string.template
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) string.unquoted
#8DD15C RGB(141, 209, 92) RGBA(141, 209, 92, 1) support
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) support.class
#E66670 RGB(230, 102, 112) RGBA(230, 102, 112, 1) support.constant
#FF3845 RGB(255, 56, 69) RGBA(255, 56, 69, 1) support.function
#5BB0F5 RGB(91, 176, 245) RGBA(91, 176, 245, 1) support.other
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) support.type
#E66670 RGB(230, 102, 112) RGBA(230, 102, 112, 1) support.type.primitive
#E66670 RGB(230, 102, 112) RGBA(230, 102, 112, 1) support.type.property-name
#E66670 RGB(230, 102, 112) RGBA(230, 102, 112, 1) variable
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) variable.function
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) variable.language
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) variable.name
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) variable.other
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) variable.other.constant
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) variable.other.property
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) variable.other.readwrite
#FFA34C RGB(255, 163, 76) RGBA(255, 163, 76, 1) variable.parameter
#A7BADF RGB(167, 186, 223) RGBA(167, 186, 223, 1)