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
JN Oceanic Next
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#1C2022 RGB(28, 32, 34) RGBA(28, 32, 34, 1) editor.foreground
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) editor.lineHighlightBackground
#65737E55 RGB(101, 115, 126) RGBA(101, 115, 126, 0.333) editor.selectionBackground
#ADD6FF26 RGB(173, 214, 255) RGBA(173, 214, 255, 0.149) editorCursor.foreground
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) editorWarning.foreground
#F3C863 RGB(243, 200, 99) RGBA(243, 200, 99, 1) editorWhitespace.foreground
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) statusBar.background
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 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
#5C6370 RGB(92, 99, 112) RGBA(92, 99, 112, 1) comment.block
#5C6370 RGB(92, 99, 112) RGBA(92, 99, 112, 1) comment.block.documentation
#5C6370 RGB(92, 99, 112) RGBA(92, 99, 112, 1) comment.line
#5C6370 RGB(92, 99, 112) RGBA(92, 99, 112, 1) constant
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.character
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.character.escape
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) constant.numeric
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.numeric.integer
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.numeric.float
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.numeric.hex
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.numeric.octal
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.other
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) constant.other.placeholder
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) constant.regexp
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.rgb-value
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) entity
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) entity.name
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) entity.name.class
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) entity.name.function
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) entity.name.method
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) entity.name.namespace
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) entity.name.section
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) entity.name.selector
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) entity.name.tag
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) entity.name.type
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) entity.name.type.enum
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) entity.name.type.interface
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) entity.name.type.struct
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) entity.other
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) entity.other.attribute-name
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) entity.other.inherited-class
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) invalid
WHITE — — invalid.deprecated
#523D14 RGB(82, 61, 20) RGBA(82, 61, 20, 1) invalid.illegal
WHITE — — keyword
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) keyword.control
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) keyword.control.flow
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) keyword.operator
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) keyword.operator.new
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.operator.assignment
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) keyword.operator.arithmetic
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) keyword.operator.logical
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) keyword.other
#66B9F4 RGB(102, 185, 244) RGBA(102, 185, 244, 1) markup
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup.bold
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) markup.changed
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup.deleted
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) markup.heading
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) markup.inline.raw
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) markup.inserted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) markup.italic
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup.quote
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) markup.raw
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) markup.underline
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup.underline.link
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) meta
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) meta.class
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) meta.function
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) meta.selector
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) meta.tag
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) punctuation.definition.bracket
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) punctuation.definition.comment
#5C6370 RGB(92, 99, 112) RGBA(92, 99, 112, 1) punctuation.definition.string.begin
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) punctuation.definition.string.end
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) punctuation.separator
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) punctuation.separator.continuation
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) punctuation.terminator
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) storage
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) storage.modifier
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) storage.type
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) string
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.interpolated
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.other
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.double
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.other
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.single
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.triple
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.regexp
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) string.template
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.unquoted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) support
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) support.class
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) support.constant
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) support.function
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) support.type
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) support.type.primitive
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) support.type.property-name
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) support.variable
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) variable.function
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) variable.language
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) variable.name
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) variable.other
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) variable.other.constant
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) variable.other.property
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) variable.other.readwrite
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) variable.parameter
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1)