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
Rebecca-dark
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
#9F9F9F RGB(159, 159, 159) RGBA(159, 159, 159, 1) comment.block
#9F9F9F RGB(159, 159, 159) RGBA(159, 159, 159, 1) comment.block.documentation
#9F9F9F RGB(159, 159, 159) RGBA(159, 159, 159, 1) comment.line
#9F9F9F RGB(159, 159, 159) RGBA(159, 159, 159, 1) constant
#1C87C7 RGB(28, 135, 199) RGBA(28, 135, 199, 1) constant.character
#1C87C7 RGB(28, 135, 199) RGBA(28, 135, 199, 1) constant.character.escape
#1C87C7 RGB(28, 135, 199) RGBA(28, 135, 199, 1) constant.numeric
#0022FF RGB(0, 34, 255) RGBA(0, 34, 255, 1) constant.numeric.integer
#0022FF RGB(0, 34, 255) RGBA(0, 34, 255, 1) constant.numeric.float
#0022FF RGB(0, 34, 255) RGBA(0, 34, 255, 1) constant.numeric.hex
#0022FF RGB(0, 34, 255) RGBA(0, 34, 255, 1) constant.numeric.octal
#0022FF RGB(0, 34, 255) RGBA(0, 34, 255, 1) constant.other
#1C87C7 RGB(28, 135, 199) RGBA(28, 135, 199, 1) constant.other.placeholder
#1C87C7 RGB(28, 135, 199) RGBA(28, 135, 199, 1) entity
#8C4600 RGB(140, 70, 0) RGBA(140, 70, 0, 1) entity.name
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) entity.name.class
#FC0000 RGB(252, 0, 0) RGBA(252, 0, 0, 1) entity.name.function
#126A99 RGB(18, 106, 153) RGBA(18, 106, 153, 1) entity.name.tag
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) entity.other
#8C4600 RGB(140, 70, 0) RGBA(140, 70, 0, 1) entity.other.attribute-name
#8C4600 RGB(140, 70, 0) RGBA(140, 70, 0, 1) entity.other.inherited-class
#FC0000 RGB(252, 0, 0) RGBA(252, 0, 0, 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
#7100F5 RGB(113, 0, 245) RGBA(113, 0, 245, 1) keyword.control
#7100F5 RGB(113, 0, 245) RGBA(113, 0, 245, 1) keyword.control.flow
#7100F5 RGB(113, 0, 245) RGBA(113, 0, 245, 1) keyword.operator
#7100F5 RGB(113, 0, 245) RGBA(113, 0, 245, 1) keyword.operator.new
#7100F5 RGB(113, 0, 245) RGBA(113, 0, 245, 1) keyword.operator.assignment
#7100F5 RGB(113, 0, 245) RGBA(113, 0, 245, 1) keyword.operator.arithmetic
#7100F5 RGB(113, 0, 245) RGBA(113, 0, 245, 1) keyword.operator.logical
#7100F5 RGB(113, 0, 245) RGBA(113, 0, 245, 1) keyword.other
#7100F5 RGB(113, 0, 245) RGBA(113, 0, 245, 1) storage
#D300D1 RGB(211, 0, 209) RGBA(211, 0, 209, 1) storage.modifier
#D300D1 RGB(211, 0, 209) RGBA(211, 0, 209, 1) storage.type
#1F8D5D RGB(31, 141, 93) RGBA(31, 141, 93, 1) string
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) string.interpolated
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) string.other
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) string.quoted
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) string.quoted.double
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) string.quoted.other
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) string.quoted.single
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) string.quoted.triple
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) string.regexp
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) string.template
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) string.unquoted
#F006E0 RGB(240, 6, 224) RGBA(240, 6, 224, 1) support
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.class
#039532 RGB(3, 149, 50) RGBA(3, 149, 50, 1) support.constant
#1F7A53 RGB(31, 122, 83) RGBA(31, 122, 83, 1) support.function
#0F9F30 RGB(15, 159, 48) RGBA(15, 159, 48, 1) support.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.type
#039532 RGB(3, 149, 50) RGBA(3, 149, 50, 1) support.type.primitive
#039532 RGB(3, 149, 50) RGBA(3, 149, 50, 1) support.type.property-name
#039532 RGB(3, 149, 50) RGBA(3, 149, 50, 1) variable
#5B6DD4 RGB(91, 109, 212) RGBA(91, 109, 212, 1) variable.function
#5B6DD4 RGB(91, 109, 212) RGBA(91, 109, 212, 1) variable.language
#5B6DD4 RGB(91, 109, 212) RGBA(91, 109, 212, 1) variable.name
#5B6DD4 RGB(91, 109, 212) RGBA(91, 109, 212, 1) variable.other
#5B6DD4 RGB(91, 109, 212) RGBA(91, 109, 212, 1) variable.other.constant
#5B6DD4 RGB(91, 109, 212) RGBA(91, 109, 212, 1) variable.other.property
#5B6DD4 RGB(91, 109, 212) RGBA(91, 109, 212, 1) variable.other.readwrite
#5B6DD4 RGB(91, 109, 212) RGBA(91, 109, 212, 1) variable.parameter
#358100 RGB(53, 129, 0) RGBA(53, 129, 0, 1)