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
Ezekel
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
#7A6E62 RGB(122, 110, 98) RGBA(122, 110, 98, 1) comment.block
#7A6E62 RGB(122, 110, 98) RGBA(122, 110, 98, 1) comment.block.documentation
#7A6E62 RGB(122, 110, 98) RGBA(122, 110, 98, 1) comment.line
#7A6E62 RGB(122, 110, 98) RGBA(122, 110, 98, 1) constant
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) constant.character
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) constant.character.escape
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) constant.numeric
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) constant.numeric.integer
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) constant.numeric.float
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) constant.numeric.hex
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) constant.numeric.octal
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) constant.other
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) constant.other.placeholder
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) constant.regexp
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) constant.rgb-value
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) entity
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.name
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.name.class
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.name.function
#6E897F RGB(110, 137, 127) RGBA(110, 137, 127, 1) entity.name.method
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.name.namespace
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.name.section
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.name.selector
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.name.tag
#CC4F42 RGB(204, 79, 66) RGBA(204, 79, 66, 1) entity.name.type
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.name.type.enum
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.name.type.interface
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.name.type.struct
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.other
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.other.attribute-name
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) entity.other.inherited-class
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) invalid
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) invalid.deprecated
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) invalid.illegal
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) keyword
#CC4F42 RGB(204, 79, 66) RGBA(204, 79, 66, 1) keyword.control
#CC4F42 RGB(204, 79, 66) RGBA(204, 79, 66, 1) keyword.control.flow
#CC4F42 RGB(204, 79, 66) RGBA(204, 79, 66, 1) keyword.operator
#CF6C1A RGB(207, 108, 26) RGBA(207, 108, 26, 1) keyword.operator.new
#CC4F42 RGB(204, 79, 66) RGBA(204, 79, 66, 1) keyword.operator.assignment
#CF6C1A RGB(207, 108, 26) RGBA(207, 108, 26, 1) keyword.operator.arithmetic
#CF6C1A RGB(207, 108, 26) RGBA(207, 108, 26, 1) keyword.operator.logical
#CF6C1A RGB(207, 108, 26) RGBA(207, 108, 26, 1) keyword.other
#CC4F42 RGB(204, 79, 66) RGBA(204, 79, 66, 1) markup
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) markup.changed
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) markup.deleted
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) markup.heading
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) markup.inserted
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) meta
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) meta.function-call
#6E897F RGB(110, 137, 127) RGBA(110, 137, 127, 1) meta.preprocessor
#AD7081 RGB(173, 112, 129) RGBA(173, 112, 129, 1) meta.selector
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) meta.tag
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) punctuation.definition.bracket
#8B806F RGB(139, 128, 111) RGBA(139, 128, 111, 1) punctuation.definition.comment
#8B806F RGB(139, 128, 111) RGBA(139, 128, 111, 1) punctuation.definition.string.begin
#8B806F RGB(139, 128, 111) RGBA(139, 128, 111, 1) punctuation.definition.string.end
#8B806F RGB(139, 128, 111) RGBA(139, 128, 111, 1) punctuation.separator
#8B806F RGB(139, 128, 111) RGBA(139, 128, 111, 1) punctuation.separator.continuation
#8B806F RGB(139, 128, 111) RGBA(139, 128, 111, 1) punctuation.terminator
#8B806F RGB(139, 128, 111) RGBA(139, 128, 111, 1) storage
#F2B042 RGB(242, 176, 66) RGBA(242, 176, 66, 1) storage.modifier
#F2B042 RGB(242, 176, 66) RGBA(242, 176, 66, 1) storage.type
#F2B042 RGB(242, 176, 66) RGBA(242, 176, 66, 1) string
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) string.interpolated
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) string.other
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) string.quoted
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) string.quoted.double
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) string.quoted.other
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) string.quoted.single
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) string.quoted.triple
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) string.regexp
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) string.template
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) string.unquoted
#989A24 RGB(152, 154, 36) RGBA(152, 154, 36, 1) support
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) support.class
#779E69 RGB(119, 158, 105) RGBA(119, 158, 105, 1) support.constant
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) support.function
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) support.other
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) support.type
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) support.type.primitive
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) support.type.property-name
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) support.variable
#CC9C2C RGB(204, 156, 44) RGBA(204, 156, 44, 1) variable
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) variable.function
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) variable.language
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) variable.name
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) variable.other
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) variable.other.constant
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) variable.other.property
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) variable.other.readwrite
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1) variable.parameter
#CFC89F RGB(207, 200, 159) RGBA(207, 200, 159, 1)