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
Polymer Syntax Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA badge.background
#1B80B2 RGB(27, 128, 178) RGBA(27, 128, 178, 1) editor.background
#2C384B RGB(44, 56, 75) RGBA(44, 56, 75, 1) editor.foreground
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) editor.lineHighlightBackground
#007DFF20 RGB(0, 125, 255) RGBA(0, 125, 255, 0.125) editor.selectionBackground
#007DFF80 RGB(0, 125, 255) RGBA(0, 125, 255, 0.502) editorCursor.foreground
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) editorWhitespace.foreground
#282A32 RGB(40, 42, 50) RGBA(40, 42, 50, 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
#F67B37 RGB(246, 123, 55) RGBA(246, 123, 55, 1) comment.block
#F67B37 RGB(246, 123, 55) RGBA(246, 123, 55, 1) comment.block.documentation
#F67B37 RGB(246, 123, 55) RGBA(246, 123, 55, 1) comment.line
#F67B37 RGB(246, 123, 55) RGBA(246, 123, 55, 1) constant
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) constant.character
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) constant.character.escape
#CF7D34 RGB(207, 125, 52) RGBA(207, 125, 52, 1) constant.numeric
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) constant.numeric.integer
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) constant.numeric.float
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) constant.numeric.hex
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) constant.numeric.octal
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) constant.other
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) constant.other.placeholder
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) constant.regexp
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) constant.rgb-value
#FF846B RGB(255, 132, 107) RGBA(255, 132, 107, 1) entity
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name.class
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name.function
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name.method
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name.namespace
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name.section
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name.selector
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name.tag
#8B98AB RGB(139, 152, 171) RGBA(139, 152, 171, 1) entity.name.type
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name.type.enum
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name.type.interface
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.name.type.struct
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.other
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) entity.other.attribute-name
#98E2FF RGB(152, 226, 255) RGBA(152, 226, 255, 1) entity.other.inherited-class
#FF9749 RGB(255, 151, 73) RGBA(255, 151, 73, 1) invalid
#FD5FF1 RGB(253, 95, 241) RGBA(253, 95, 241, 1) invalid.deprecated
#FD5FF1 RGB(253, 95, 241) RGBA(253, 95, 241, 1) invalid.illegal
#FD5FF1 RGB(253, 95, 241) RGBA(253, 95, 241, 1) keyword
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.control
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.control.flow
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.new
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.assignment
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.arithmetic
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.logical
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.other
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) markup
#578BB3 RGB(87, 139, 179) RGBA(87, 139, 179, 1) markup.bold
#E9C062 RGB(233, 192, 98) RGBA(233, 192, 98, 1) markup.changed
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) markup.deleted
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) markup.heading
#FEDCC5 RGB(254, 220, 197) RGBA(254, 220, 197, 1) markup.inserted
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) markup.italic
#E9C062 RGB(233, 192, 98) RGBA(233, 192, 98, 1) markup.list
#E1D4B9 RGB(225, 212, 185) RGBA(225, 212, 185, 1) markup.list.numbered
#E1D4B9 RGB(225, 212, 185) RGBA(225, 212, 185, 1) markup.list.unnumbered
#E1D4B9 RGB(225, 212, 185) RGBA(225, 212, 185, 1) markup.quote
#E1D4B9 RGB(225, 212, 185) RGBA(225, 212, 185, 1) markup.raw
#578BB3 RGB(87, 139, 179) RGBA(87, 139, 179, 1) markup.underline
#E18964 RGB(225, 137, 100) RGBA(225, 137, 100, 1) markup.underline.link
#E18964 RGB(225, 137, 100) RGBA(225, 137, 100, 1) meta
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.cast
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) meta.preprocessor
#8996A8 RGB(137, 150, 168) RGBA(137, 150, 168, 1) meta.tag
#00C0FF RGB(0, 192, 255) RGBA(0, 192, 255, 1) punctuation.definition.string.begin
#99CF50 RGB(153, 207, 80) RGBA(153, 207, 80, 1) punctuation.definition.string.end
#99CF50 RGB(153, 207, 80) RGBA(153, 207, 80, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#99CF50 RGB(153, 207, 80) RGBA(153, 207, 80, 1) storage.modifier
#99CF50 RGB(153, 207, 80) RGBA(153, 207, 80, 1) storage.type
#99CF50 RGB(153, 207, 80) RGBA(153, 207, 80, 1) string
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.interpolated
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.other
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.double
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.other
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.single
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.triple
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.regexp
#E9C062 RGB(233, 192, 98) RGBA(233, 192, 98, 1) string.template
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.unquoted
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) support
#00FFBC RGB(0, 255, 188) RGBA(0, 255, 188, 1) support.class
#00FFBC RGB(0, 255, 188) RGBA(0, 255, 188, 1) support.constant
#FFA454 RGB(255, 164, 84) RGBA(255, 164, 84, 1) support.function
#F1D950 RGB(241, 217, 80) RGBA(241, 217, 80, 1) support.other
#00FFBC RGB(0, 255, 188) RGBA(0, 255, 188, 1) support.type
#00FFBC RGB(0, 255, 188) RGBA(0, 255, 188, 1) support.type.primitive
#00FFBC RGB(0, 255, 188) RGBA(0, 255, 188, 1) support.type.property-name
#00FFBC RGB(0, 255, 188) RGBA(0, 255, 188, 1) support.variable
#00FFBC RGB(0, 255, 188) RGBA(0, 255, 188, 1) variable
#689CFF RGB(104, 156, 255) RGBA(104, 156, 255, 1) variable.function
#689CFF RGB(104, 156, 255) RGBA(104, 156, 255, 1) variable.language
#689CFF RGB(104, 156, 255) RGBA(104, 156, 255, 1) variable.name
#689CFF RGB(104, 156, 255) RGBA(104, 156, 255, 1) variable.other
#689CFF RGB(104, 156, 255) RGBA(104, 156, 255, 1) variable.other.constant
#689CFF RGB(104, 156, 255) RGBA(104, 156, 255, 1) variable.other.property
#689CFF RGB(104, 156, 255) RGBA(104, 156, 255, 1) variable.other.readwrite
#689CFF RGB(104, 156, 255) RGBA(104, 156, 255, 1) variable.parameter
#689CFF RGB(104, 156, 255) RGBA(104, 156, 255, 1)