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
Cosmic Night Neon
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#151515 RGB(21, 21, 21) RGBA(21, 21, 21, 1) editor.background
#151515 RGB(21, 21, 21) RGBA(21, 21, 21, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.lineHighlightBackground
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) editor.selectionBackground
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) editorCursor.foreground
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) editorLineNumber.activeForeground
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) editorLineNumber.foreground
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) sideBar.background
#151515 RGB(21, 21, 21) RGBA(21, 21, 21, 1) statusBar.background
#151515 RGB(21, 21, 21) RGBA(21, 21, 21, 1) titleBar.activeBackground
#151515 RGB(21, 21, 21) RGBA(21, 21, 21, 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
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 1) comment.block
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 1) comment.block.documentation
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 1) comment.line
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 1) constant
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) constant.character
#FF3377 RGB(255, 51, 119) RGBA(255, 51, 119, 1) constant.character.escape
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) constant.numeric
#FF3377 RGB(255, 51, 119) RGBA(255, 51, 119, 1) constant.numeric.integer
#FF3377 RGB(255, 51, 119) RGBA(255, 51, 119, 1) constant.numeric.float
#FF3377 RGB(255, 51, 119) RGBA(255, 51, 119, 1) constant.numeric.hex
#FF3377 RGB(255, 51, 119) RGBA(255, 51, 119, 1) constant.numeric.octal
#FF3377 RGB(255, 51, 119) RGBA(255, 51, 119, 1) constant.other
#FF3377 RGB(255, 51, 119) RGBA(255, 51, 119, 1) constant.other.placeholder
#FF3377 RGB(255, 51, 119) RGBA(255, 51, 119, 1) entity
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) entity.name
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) entity.name.function
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) entity.name.tag
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) entity.name.type
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) entity.name.type.enum
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) entity.name.type.interface
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) entity.name.type.struct
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) entity.other
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) entity.other.attribute-name
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) entity.other.inherited-class
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) keyword
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) keyword.control
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) keyword.control.flow
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) keyword.operator
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) keyword.operator.new
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) keyword.operator.assignment
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) keyword.operator.arithmetic
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) keyword.operator.logical
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) keyword.other
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.bold
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.heading
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.inline.raw
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.italic
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.list
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.list.numbered
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.list.unnumbered
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.quote
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.raw
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.underline
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) markup.underline.link
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) meta
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) meta.class
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) meta.function
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) meta.function-call
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) meta.selector
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) meta.tag
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) punctuation.separator
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) storage
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) storage.modifier
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) storage.type
#00FFAA RGB(0, 255, 170) RGBA(0, 255, 170, 1) string
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) string.interpolated
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) string.other
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) string.quoted
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) string.quoted.double
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) string.quoted.other
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) string.quoted.single
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) string.quoted.triple
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) string.regexp
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) string.template
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) string.unquoted
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) support
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) support.class
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) support.constant
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) support.function
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) support.type
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) support.type.primitive
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) support.type.property-name
#FF00FF RGB(255, 0, 255) RGBA(255, 0, 255, 1) support.variable
#FF66DD RGB(255, 102, 221) RGBA(255, 102, 221, 1) variable
#FF66DD RGB(255, 102, 221) RGBA(255, 102, 221, 1) variable.function
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) variable.language
#FF66DD RGB(255, 102, 221) RGBA(255, 102, 221, 1) variable.name
#FF66DD RGB(255, 102, 221) RGBA(255, 102, 221, 1) variable.other
#FF66DD RGB(255, 102, 221) RGBA(255, 102, 221, 1) variable.other.constant
#FF66DD RGB(255, 102, 221) RGBA(255, 102, 221, 1) variable.other.property
#FF66DD RGB(255, 102, 221) RGBA(255, 102, 221, 1) variable.other.readwrite
#FF66DD RGB(255, 102, 221) RGBA(255, 102, 221, 1) variable.parameter
#FF66DD RGB(255, 102, 221) RGBA(255, 102, 221, 1)