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
Dark Cake Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) activityBar.border
#979797 RGB(151, 151, 151) RGBA(151, 151, 151, 1) activityBarBadge.background
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) button.background
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) editor.background
#252525 RGB(37, 37, 37) RGBA(37, 37, 37, 1) editor.foreground
#9DF0FF RGB(157, 240, 255) RGBA(157, 240, 255, 1) editorBracketHighlight.foreground1
#FFFF93 RGB(255, 255, 147) RGBA(255, 255, 147, 1) editorBracketHighlight.foreground2
#56E4FE RGB(86, 228, 254) RGBA(86, 228, 254, 1) editorBracketHighlight.foreground3
#FC4B8D RGB(252, 75, 141) RGBA(252, 75, 141, 1) editorBracketHighlight.foreground4
#97FF97 RGB(151, 255, 151) RGBA(151, 255, 151, 1) editorBracketHighlight.foreground5
#F092FE RGB(240, 146, 254) RGBA(240, 146, 254, 1) editorBracketHighlight.unexpectedBracket.foreground
#ABB2C0 RGB(171, 178, 192) RGBA(171, 178, 192, 1) editorBracketMatch.border
#DA3A6F RGB(218, 58, 111) RGBA(218, 58, 111, 1) editorGutter.addedBackground
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) editorOverviewRuler.addedForeground
#DA3A6F RGB(218, 58, 111) RGBA(218, 58, 111, 1) list.activeSelectionForeground
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) list.focusForeground
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) list.inactiveSelectionForeground
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) sideBar.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) sideBar.border
#979797 RGB(151, 151, 151) RGBA(151, 151, 151, 1) sideBar.foreground
#9EB3BE RGB(158, 179, 190) RGBA(158, 179, 190, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) tab.activeBorder
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) tab.activeBorderTop
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) tab.hoverBackground
#525252 RGB(82, 82, 82) RGBA(82, 82, 82, 1) tab.hoverBorder
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) tab.hoverForeground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) tab.inactiveBackground
#0E0E0E RGB(14, 14, 14) RGBA(14, 14, 14, 1) tab.inactiveForeground
#FFFFFF80 RGB(255, 255, 255) RGBA(255, 255, 255, 0.502) tab.inactiveModifiedBorder
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.lastPinnedBorder
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.unfocusedActiveForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.unfocusedInactiveBackground
#0E0E0E RGB(14, 14, 14) RGBA(14, 14, 14, 1) tab.unfocusedInactiveForeground
#FFFFFF40 RGB(255, 255, 255) RGBA(255, 255, 255, 0.251) terminal.ansiBrightGreen
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) terminal.ansiBrightYellow
#DA3A6F RGB(218, 58, 111) RGBA(218, 58, 111, 1) terminal.ansiCyan
#E69EFC RGB(230, 158, 252) RGBA(230, 158, 252, 1) terminal.ansiGreen
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) terminal.ansiYellow
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) terminal.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) terminal.foreground
#CACACA RGB(202, 202, 202) RGBA(202, 202, 202, 1) terminal.selectionForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) terminalCursor.foreground
#DA3A6F RGB(218, 58, 111) RGBA(218, 58, 111, 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
#3EB33A RGB(62, 179, 58) RGBA(62, 179, 58, 1) comment.block
#3EB33A RGB(62, 179, 58) RGBA(62, 179, 58, 1) comment.block.documentation
#3EB33A RGB(62, 179, 58) RGBA(62, 179, 58, 1) comment.line
#3EB33A RGB(62, 179, 58) RGBA(62, 179, 58, 1) constant
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) constant.character
#FF75B5 RGB(255, 117, 181) RGBA(255, 117, 181, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#FF75B5 RGB(255, 117, 181) RGBA(255, 117, 181, 1) constant.numeric.integer
#FF75B5 RGB(255, 117, 181) RGBA(255, 117, 181, 1) constant.numeric.float
#FF75B5 RGB(255, 117, 181) RGBA(255, 117, 181, 1) constant.numeric.hex
#FF75B5 RGB(255, 117, 181) RGBA(255, 117, 181, 1) constant.numeric.octal
#FF75B5 RGB(255, 117, 181) RGBA(255, 117, 181, 1) constant.other
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) constant.other.placeholder
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) entity
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) entity.name
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) entity.name.class
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) entity.name.function
#5EB1FF RGB(94, 177, 255) RGBA(94, 177, 255, 1) entity.name.method
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) entity.name.namespace
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) entity.name.section
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) entity.name.selector
#FF0055 RGB(255, 0, 85) RGBA(255, 0, 85, 1) entity.name.tag
#FF2C6D RGB(255, 44, 109) RGBA(255, 44, 109, 1) entity.name.type
#26FFD0 RGB(38, 255, 208) RGBA(38, 255, 208, 1) entity.name.type.enum
#26FFD0 RGB(38, 255, 208) RGBA(38, 255, 208, 1) entity.name.type.interface
#26FFD0 RGB(38, 255, 208) RGBA(38, 255, 208, 1) entity.name.type.struct
#26FFD0 RGB(38, 255, 208) RGBA(38, 255, 208, 1) entity.other
#B084EB RGB(176, 132, 235) RGBA(176, 132, 235, 1) entity.other.attribute-name
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) entity.other.inherited-class
#19F9D8 RGB(25, 249, 216) RGBA(25, 249, 216, 1) invalid
#FF2F2F RGB(255, 47, 47) RGBA(255, 47, 47, 1) invalid.deprecated
#FF2F2F RGB(255, 47, 47) RGBA(255, 47, 47, 1) invalid.illegal
#FF2F2F RGB(255, 47, 47) RGBA(255, 47, 47, 1) keyword
#D06CFF RGB(208, 108, 255) RGBA(208, 108, 255, 1) keyword.control
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) keyword.control.flow
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) keyword.operator
#FF5B5B RGB(255, 91, 91) RGBA(255, 91, 91, 1) keyword.operator.new
#FF5B5B RGB(255, 91, 91) RGBA(255, 91, 91, 1) keyword.operator.assignment
#FF5B5B RGB(255, 91, 91) RGBA(255, 91, 91, 1) keyword.operator.arithmetic
#FF5B5B RGB(255, 91, 91) RGBA(255, 91, 91, 1) keyword.operator.logical
#FF5B5B RGB(255, 91, 91) RGBA(255, 91, 91, 1) keyword.other
#FF75B5 RGB(255, 117, 181) RGBA(255, 117, 181, 1) markup
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) markup.bold
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) markup.changed
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) markup.deleted
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) markup.heading
#19F9D8 RGB(25, 249, 216) RGBA(25, 249, 216, 1) markup.inline.raw
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) markup.inserted
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) markup.italic
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) markup.raw
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) markup.underline
#7B84FF RGB(123, 132, 255) RGBA(123, 132, 255, 1) markup.underline.link
#7B84FF RGB(123, 132, 255) RGBA(123, 132, 255, 1) meta
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) meta.function-call
#5EB1FF RGB(94, 177, 255) RGBA(94, 177, 255, 1) meta.tag
#FF6C98 RGB(255, 108, 152) RGBA(255, 108, 152, 1) punctuation.definition.bracket
#FAFFE6 RGB(250, 255, 230) RGBA(250, 255, 230, 1) punctuation.definition.comment
#3EB33A RGB(62, 179, 58) RGBA(62, 179, 58, 1) punctuation.definition.string.begin
#1AC5AE RGB(26, 197, 174) RGBA(26, 197, 174, 1) punctuation.definition.string.end
#1AC5AE RGB(26, 197, 174) RGBA(26, 197, 174, 1) punctuation.separator
#FAFFE6 RGB(250, 255, 230) RGBA(250, 255, 230, 1) punctuation.separator.continuation
#FAFFE6 RGB(250, 255, 230) RGBA(250, 255, 230, 1) punctuation.terminator
#FAFFE6 RGB(250, 255, 230) RGBA(250, 255, 230, 1) storage
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) storage.modifier
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) storage.type
#AC6CFF RGB(172, 108, 255) RGBA(172, 108, 255, 1) string
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) string.interpolated
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) string.other
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) string.quoted
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) string.quoted.double
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) string.quoted.other
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) string.quoted.single
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) string.quoted.triple
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) string.regexp
#899FFF RGB(137, 159, 255) RGBA(137, 159, 255, 1) string.template
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) string.unquoted
#FF88AA RGB(255, 136, 170) RGBA(255, 136, 170, 1) support
#FF84FA RGB(255, 132, 250) RGBA(255, 132, 250, 1) support.class
#E2BA6F RGB(226, 186, 111) RGBA(226, 186, 111, 1) support.constant
#FF75B5 RGB(255, 117, 181) RGBA(255, 117, 181, 1) support.function
#5EB1FF RGB(94, 177, 255) RGBA(94, 177, 255, 1) support.other
#E2BA6F RGB(226, 186, 111) RGBA(226, 186, 111, 1) support.type
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) support.type.primitive
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.function
#5EB1FF RGB(94, 177, 255) RGBA(94, 177, 255, 1) variable.language
#96DD75 RGB(150, 221, 117) RGBA(150, 221, 117, 1) variable.name
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other
#89F1FF RGB(137, 241, 255) RGBA(137, 241, 255, 1) variable.other.constant
#89F1FF RGB(137, 241, 255) RGBA(137, 241, 255, 1) variable.other.property
#89F1FF RGB(137, 241, 255) RGBA(137, 241, 255, 1) variable.other.readwrite
#6FC1FF RGB(111, 193, 255) RGBA(111, 193, 255, 1) variable.parameter
#8AA0C0 RGB(138, 160, 192) RGBA(138, 160, 192, 1)