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 6
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
#5DEBD7 RGB(93, 235, 215) RGBA(93, 235, 215, 1) sideBarTitle.foreground
#FFAF45 RGB(255, 175, 69) RGBA(255, 175, 69, 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
#EBE76C RGB(235, 231, 108) RGBA(235, 231, 108, 1) comment.block
#EBE76C RGB(235, 231, 108) RGBA(235, 231, 108, 1) comment.block.documentation
#EBE76C RGB(235, 231, 108) RGBA(235, 231, 108, 1) comment.line
#EBE76C RGB(235, 231, 108) RGBA(235, 231, 108, 1) constant
#FF8E8F RGB(255, 142, 143) RGBA(255, 142, 143, 1) constant.character
#00FFCA RGB(0, 255, 202) RGBA(0, 255, 202, 1) constant.character.escape
#CDFADB RGB(205, 250, 219) RGBA(205, 250, 219, 1) constant.numeric
#00FFCA RGB(0, 255, 202) RGBA(0, 255, 202, 1) constant.numeric.integer
#00FFCA RGB(0, 255, 202) RGBA(0, 255, 202, 1) constant.numeric.float
#00FFCA RGB(0, 255, 202) RGBA(0, 255, 202, 1) constant.numeric.hex
#00FFCA RGB(0, 255, 202) RGBA(0, 255, 202, 1) constant.numeric.octal
#00FFCA RGB(0, 255, 202) RGBA(0, 255, 202, 1) constant.other
#FF8E8F RGB(255, 142, 143) RGBA(255, 142, 143, 1) constant.other.placeholder
#A0C49D RGB(160, 196, 157) RGBA(160, 196, 157, 1) entity
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.name
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.name.class
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.name.function
#EF4040 RGB(239, 64, 64) RGBA(239, 64, 64, 1) entity.name.method
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.name.namespace
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.name.section
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.name.selector
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.name.tag
#FF8989 RGB(255, 137, 137) RGBA(255, 137, 137, 1) entity.name.type
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.name.type.enum
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.name.type.interface
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.name.type.struct
#BFF6C3 RGB(191, 246, 195) RGBA(191, 246, 195, 1) entity.other
#074173 RGB(7, 65, 115) RGBA(7, 65, 115, 1) entity.other.attribute-name
#FF52A2 RGB(255, 82, 162) RGBA(255, 82, 162, 1) entity.other.inherited-class
#006769 RGB(0, 103, 105) RGBA(0, 103, 105, 1) invalid
#ED7B7B RGB(237, 123, 123) RGBA(237, 123, 123, 1) invalid.deprecated
#ED7B7B RGB(237, 123, 123) RGBA(237, 123, 123, 1) invalid.illegal
#ED7B7B RGB(237, 123, 123) RGBA(237, 123, 123, 1) keyword
#836096 RGB(131, 96, 150) RGBA(131, 96, 150, 1) keyword.control
#FFB07F RGB(255, 176, 127) RGBA(255, 176, 127, 1) keyword.control.flow
#FFB07F RGB(255, 176, 127) RGBA(255, 176, 127, 1) keyword.operator
#836096 RGB(131, 96, 150) RGBA(131, 96, 150, 1) keyword.operator.new
#836096 RGB(131, 96, 150) RGBA(131, 96, 150, 1) keyword.operator.assignment
#836096 RGB(131, 96, 150) RGBA(131, 96, 150, 1) keyword.operator.arithmetic
#836096 RGB(131, 96, 150) RGBA(131, 96, 150, 1) keyword.operator.logical
#836096 RGB(131, 96, 150) RGBA(131, 96, 150, 1) keyword.other
#00FFCA RGB(0, 255, 202) RGBA(0, 255, 202, 1) markup
#872341 RGB(135, 35, 65) RGBA(135, 35, 65, 1) markup.bold
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) markup.changed
#D74B76 RGB(215, 75, 118) RGBA(215, 75, 118, 1) markup.deleted
#57C5B6 RGB(87, 197, 182) RGBA(87, 197, 182, 1) markup.heading
#006769 RGB(0, 103, 105) RGBA(0, 103, 105, 1) markup.inline.raw
#E6FF94 RGB(230, 255, 148) RGBA(230, 255, 148, 1) markup.inserted
#FFECAF RGB(255, 236, 175) RGBA(255, 236, 175, 1) markup.italic
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) markup.raw
#C5E898 RGB(197, 232, 152) RGBA(197, 232, 152, 1) markup.underline
#5F5D9C RGB(95, 93, 156) RGBA(95, 93, 156, 1) markup.underline.link
#5F5D9C RGB(95, 93, 156) RGBA(95, 93, 156, 1) meta
#BE3144 RGB(190, 49, 68) RGBA(190, 49, 68, 1) meta.function-call
#EF4040 RGB(239, 64, 64) RGBA(239, 64, 64, 1) meta.tag
#78C1F3 RGB(120, 193, 243) RGBA(120, 193, 243, 1) punctuation.definition.bracket
#78C1F3 RGB(120, 193, 243) RGBA(120, 193, 243, 1) punctuation.definition.comment
#EBE76C RGB(235, 231, 108) RGBA(235, 231, 108, 1) punctuation.definition.string.begin
#78C1F3 RGB(120, 193, 243) RGBA(120, 193, 243, 1) punctuation.definition.string.end
#78C1F3 RGB(120, 193, 243) RGBA(120, 193, 243, 1) punctuation.separator
#78C1F3 RGB(120, 193, 243) RGBA(120, 193, 243, 1) punctuation.separator.continuation
#78C1F3 RGB(120, 193, 243) RGBA(120, 193, 243, 1) punctuation.terminator
#78C1F3 RGB(120, 193, 243) RGBA(120, 193, 243, 1) storage
#836096 RGB(131, 96, 150) RGBA(131, 96, 150, 1) storage.modifier
#836096 RGB(131, 96, 150) RGBA(131, 96, 150, 1) storage.type
#836096 RGB(131, 96, 150) RGBA(131, 96, 150, 1) string
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) string.interpolated
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) string.other
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) string.quoted
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) string.quoted.double
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) string.quoted.other
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) string.quoted.single
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) string.quoted.triple
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) string.regexp
#673F69 RGB(103, 63, 105) RGBA(103, 63, 105, 1) string.template
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) string.unquoted
#A0153E RGB(160, 21, 62) RGBA(160, 21, 62, 1) support
#40A578 RGB(64, 165, 120) RGBA(64, 165, 120, 1) support.class
#FFA732 RGB(255, 167, 50) RGBA(255, 167, 50, 1) support.constant
#00FFCA RGB(0, 255, 202) RGBA(0, 255, 202, 1) support.function
#EF4040 RGB(239, 64, 64) RGBA(239, 64, 64, 1) support.other
#FFA732 RGB(255, 167, 50) RGBA(255, 167, 50, 1) support.type
#793FDF RGB(121, 63, 223) RGBA(121, 63, 223, 1) support.type.primitive
#793FDF RGB(121, 63, 223) RGBA(121, 63, 223, 1) support.type.property-name
#97FFF4 RGB(151, 255, 244) RGBA(151, 255, 244, 1) variable
#A0C49D RGB(160, 196, 157) RGBA(160, 196, 157, 1) variable.function
#EF4040 RGB(239, 64, 64) RGBA(239, 64, 64, 1) variable.language
#7091F5 RGB(112, 145, 245) RGBA(112, 145, 245, 1) variable.name
#A0C49D RGB(160, 196, 157) RGBA(160, 196, 157, 1) variable.other
#C21292 RGB(194, 18, 146) RGBA(194, 18, 146, 1) variable.other.constant
#C21292 RGB(194, 18, 146) RGBA(194, 18, 146, 1) variable.other.property
#C21292 RGB(194, 18, 146) RGBA(194, 18, 146, 1) variable.other.readwrite
#C21292 RGB(194, 18, 146) RGBA(194, 18, 146, 1) variable.parameter
#00FFCA RGB(0, 255, 202) RGBA(0, 255, 202, 1)