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
Wombat from Sublime
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#272822 RGB(39, 40, 34) RGBA(39, 40, 34, 1) editor.foreground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) editor.lineHighlightBackground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) editor.selectionBackground
#444444 RGB(68, 68, 68) RGBA(68, 68, 68, 1) editorCursor.foreground
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) editorWhitespace.foreground
#3B3A32 RGB(59, 58, 50) RGBA(59, 58, 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
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) comment.block
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) comment.block.documentation
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) comment.line
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) constant
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) constant.character
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.character.escape
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) constant.numeric.integer
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) constant.numeric.float
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) constant.numeric.hex
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) constant.numeric.octal
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) constant.other
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.other.placeholder
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) entity
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) entity.name
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) entity.name.class
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) entity.name.function
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) entity.name.method
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) entity.name.namespace
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) entity.name.section
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) entity.name.selector
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) entity.name.tag
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) entity.name.type
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) entity.name.type.enum
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) entity.name.type.interface
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) entity.name.type.struct
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) entity.other
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) entity.other.attribute-name
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) entity.other.inherited-class
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) invalid
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) keyword.control
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) keyword.control.flow
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) keyword.operator
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) keyword.operator.new
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) keyword.operator.assignment
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) keyword.operator.arithmetic
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) keyword.operator.logical
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) keyword.other
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) markup
#565656 RGB(86, 86, 86) RGBA(86, 86, 86, 1) markup.bold
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) markup.changed
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) markup.deleted
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) markup.inserted
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) markup.italic
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) markup.quote
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) markup.raw
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) markup.underline
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) markup.underline.link
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) meta
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) meta.function
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) meta.preprocessor
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) meta.tag
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) punctuation.definition.string.begin
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) punctuation.definition.string.end
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.terminator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) storage.modifier
#FF8F7E RGB(255, 143, 126) RGBA(255, 143, 126, 1) storage.type
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) string
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.interpolated
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.other
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.double
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.other
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.single
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.triple
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.regexp
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) string.template
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.unquoted
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) support
#CAE682 RGB(202, 230, 130) RGBA(202, 230, 130, 1) support.class
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) support.constant
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) support.function
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) support.other
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) support.type
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) support.type.primitive
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) support.type.property-name
#88B8F6 RGB(136, 184, 246) RGBA(136, 184, 246, 1) variable
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) variable.language
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) variable.other
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1) variable.parameter
#FFCC22 RGB(255, 204, 34) RGBA(255, 204, 34, 1)