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
Proca 1
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#2A2D2E RGB(42, 45, 46) RGBA(42, 45, 46, 1) editor.foreground
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) sideBarTitle.foreground
#60B423 RGB(96, 180, 35) RGBA(96, 180, 35, 1)
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
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) comment.block
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) comment.block.documentation
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) comment.line
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) constant
#119977 RGB(17, 153, 119) RGBA(17, 153, 119, 1) constant.character
#39D7C5 RGB(57, 215, 197) RGBA(57, 215, 197, 1) constant.character.escape
#BD3F76 RGB(189, 63, 118) RGBA(189, 63, 118, 1) constant.numeric
#39D7C5 RGB(57, 215, 197) RGBA(57, 215, 197, 1) constant.numeric.integer
#39D7C5 RGB(57, 215, 197) RGBA(57, 215, 197, 1) constant.numeric.float
#39D7C5 RGB(57, 215, 197) RGBA(57, 215, 197, 1) constant.numeric.hex
#39D7C5 RGB(57, 215, 197) RGBA(57, 215, 197, 1) constant.numeric.octal
#39D7C5 RGB(57, 215, 197) RGBA(57, 215, 197, 1) constant.other
#119977 RGB(17, 153, 119) RGBA(17, 153, 119, 1) constant.other.placeholder
#9AEF59 RGB(154, 239, 89) RGBA(154, 239, 89, 1) entity
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.name
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.name.class
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.name.function
#B7FFB1 RGB(183, 255, 177) RGBA(183, 255, 177, 1) entity.name.method
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.name.namespace
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.name.section
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.name.selector
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.name.tag
#FFB1FC RGB(255, 177, 252) RGBA(255, 177, 252, 1) entity.name.type
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.name.type.enum
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.name.type.interface
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.name.type.struct
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) entity.other
#7E78C4 RGB(126, 120, 196) RGBA(126, 120, 196, 1) entity.other.attribute-name
#C4C478 RGB(196, 196, 120) RGBA(196, 196, 120, 1) entity.other.inherited-class
#9876FF RGB(152, 118, 255) RGBA(152, 118, 255, 1) invalid
#EF9A59 RGB(239, 154, 89) RGBA(239, 154, 89, 1) invalid.deprecated
#EF9A59 RGB(239, 154, 89) RGBA(239, 154, 89, 1) invalid.illegal
#EF9A59 RGB(239, 154, 89) RGBA(239, 154, 89, 1) keyword
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) keyword.control
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) keyword.control.flow
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) keyword.operator
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) keyword.operator.new
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) keyword.operator.assignment
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) keyword.operator.arithmetic
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) keyword.operator.logical
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) keyword.other
#39D7C5 RGB(57, 215, 197) RGBA(57, 215, 197, 1) markup
#CDB0BF RGB(205, 176, 191) RGBA(205, 176, 191, 1) markup.bold
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) markup.changed
#3FBD4E RGB(63, 189, 78) RGBA(63, 189, 78, 1) markup.deleted
#3FBBBD RGB(63, 187, 189) RGBA(63, 187, 189, 1) markup.heading
#9876FF RGB(152, 118, 255) RGBA(152, 118, 255, 1) markup.inline.raw
#FF00AA RGB(255, 0, 170) RGBA(255, 0, 170, 1) markup.inserted
#C478A4 RGB(196, 120, 164) RGBA(196, 120, 164, 1) markup.italic
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) markup.raw
#CDB0C3 RGB(205, 176, 195) RGBA(205, 176, 195, 1) markup.underline
#DDDCCC RGB(221, 220, 204) RGBA(221, 220, 204, 1) markup.underline.link
#DDDCCC RGB(221, 220, 204) RGBA(221, 220, 204, 1) meta
#CACDB0 RGB(202, 205, 176) RGBA(202, 205, 176, 1) meta.function-call
#B7FFB1 RGB(183, 255, 177) RGBA(183, 255, 177, 1) meta.tag
#FFD452 RGB(255, 212, 82) RGBA(255, 212, 82, 1) punctuation.definition.bracket
#FFD452 RGB(255, 212, 82) RGBA(255, 212, 82, 1) punctuation.definition.comment
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) punctuation.definition.string.begin
#FFD452 RGB(255, 212, 82) RGBA(255, 212, 82, 1) punctuation.definition.string.end
#FFD452 RGB(255, 212, 82) RGBA(255, 212, 82, 1) punctuation.separator
#FFD452 RGB(255, 212, 82) RGBA(255, 212, 82, 1) punctuation.separator.continuation
#FFD452 RGB(255, 212, 82) RGBA(255, 212, 82, 1) punctuation.terminator
#FFD452 RGB(255, 212, 82) RGBA(255, 212, 82, 1) storage
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) storage.modifier
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) storage.type
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) string
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) string.interpolated
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) string.other
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) string.quoted
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) string.quoted.double
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) string.quoted.other
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) string.quoted.single
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) string.quoted.triple
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) string.regexp
#B3BD3F RGB(179, 189, 63) RGBA(179, 189, 63, 1) string.template
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) string.unquoted
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) support
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) support.class
#7A45EE RGB(122, 69, 238) RGBA(122, 69, 238, 1) support.constant
#39D7C5 RGB(57, 215, 197) RGBA(57, 215, 197, 1) support.function
#B7FFB1 RGB(183, 255, 177) RGBA(183, 255, 177, 1) support.other
#7A45EE RGB(122, 69, 238) RGBA(122, 69, 238, 1) support.type
#B0EE45 RGB(176, 238, 69) RGBA(176, 238, 69, 1) support.type.primitive
#B0EE45 RGB(176, 238, 69) RGBA(176, 238, 69, 1) support.type.property-name
#00DE8D RGB(0, 222, 141) RGBA(0, 222, 141, 1) variable
#9AEF59 RGB(154, 239, 89) RGBA(154, 239, 89, 1) variable.function
#B7FFB1 RGB(183, 255, 177) RGBA(183, 255, 177, 1) variable.language
#86C478 RGB(134, 196, 120) RGBA(134, 196, 120, 1) variable.name
#9AEF59 RGB(154, 239, 89) RGBA(154, 239, 89, 1) variable.other
#F66548 RGB(246, 101, 72) RGBA(246, 101, 72, 1) variable.other.constant
#F66548 RGB(246, 101, 72) RGBA(246, 101, 72, 1) variable.other.property
#F66548 RGB(246, 101, 72) RGBA(246, 101, 72, 1) variable.other.readwrite
#F66548 RGB(246, 101, 72) RGBA(246, 101, 72, 1) variable.parameter
#39D7C5 RGB(57, 215, 197) RGBA(57, 215, 197, 1)