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
bTheme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 1) activityBar.background
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) activityBar.foreground
#E5E6E8 RGB(229, 230, 232) RGBA(229, 230, 232, 1) activityBarBadge.background
#5093FE RGB(80, 147, 254) RGBA(80, 147, 254, 1) badge.background
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) banner.background
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) button.background
#5093FE RGB(80, 147, 254) RGBA(80, 147, 254, 1) commandCenter.background
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) descriptionForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) dropdown.background
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) dropdown.listBackground
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 1) editor.background
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) editor.findMatchBackground
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 1) editor.findMatchHighlightBackground
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.wordHighlightBorder
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 1) editorGroupHeader.tabsBackground
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 1) editorWidget.background
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 1) editorWidget.border
#5093FE RGB(80, 147, 254) RGBA(80, 147, 254, 1) input.background
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) input.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) input.placeholderForeground
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) keybindingLabel.background
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 1) list.activeSelectionBackground
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) list.dropBackground
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) list.filterMatchBackground
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) list.focusBackground
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) menu.background
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) menu.separatorBackground
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 1) menubar.selectionBackground
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) notificationCenterHeader.background
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) sash.hoverBorder
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) selection.background
#5093FE RGB(80, 147, 254) RGBA(80, 147, 254, 1) settings.dropdownBackground
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) sideBar.background
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 1) sideBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBarSectionHeader.background
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) sideBarSectionHeader.foreground
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) sideBarTitle.foreground
#E5E6E8 RGB(229, 230, 232) RGBA(229, 230, 232, 1) tab.activeBackground
#252831 RGB(37, 40, 49) RGBA(37, 40, 49, 1) tab.activeBorderTop
#5093FE RGB(80, 147, 254) RGBA(80, 147, 254, 1) tab.inactiveBackground
#202431 RGB(32, 36, 49) RGBA(32, 36, 49, 1) titleBar.activeBackground
#161922 RGB(22, 25, 34) RGBA(22, 25, 34, 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
#757575 RGB(117, 117, 117) RGBA(117, 117, 117, 1) comment.block
#757575 RGB(117, 117, 117) RGBA(117, 117, 117, 1) comment.block.documentation
#757575 RGB(117, 117, 117) RGBA(117, 117, 117, 1) comment.line
#757575 RGB(117, 117, 117) RGBA(117, 117, 117, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#B467FD RGB(180, 103, 253) RGBA(180, 103, 253, 1) constant.character.escape
#5093FE RGB(80, 147, 254) RGBA(80, 147, 254, 1) constant.numeric
#B467FD RGB(180, 103, 253) RGBA(180, 103, 253, 1) constant.numeric.integer
#B467FD RGB(180, 103, 253) RGBA(180, 103, 253, 1) constant.numeric.float
#B467FD RGB(180, 103, 253) RGBA(180, 103, 253, 1) constant.numeric.hex
#B467FD RGB(180, 103, 253) RGBA(180, 103, 253, 1) constant.numeric.octal
#B467FD RGB(180, 103, 253) RGBA(180, 103, 253, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#00F391 RGB(0, 243, 145) RGBA(0, 243, 145, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#FA72B8 RGB(250, 114, 184) RGBA(250, 114, 184, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#FA72B8 RGB(250, 114, 184) RGBA(250, 114, 184, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.operator
#FA72B8 RGB(250, 114, 184) RGBA(250, 114, 184, 1) keyword.operator.new
#FA72B8 RGB(250, 114, 184) RGBA(250, 114, 184, 1) keyword.operator.assignment
#FA72B8 RGB(250, 114, 184) RGBA(250, 114, 184, 1) keyword.operator.arithmetic
#FA72B8 RGB(250, 114, 184) RGBA(250, 114, 184, 1) keyword.operator.logical
#FA72B8 RGB(250, 114, 184) RGBA(250, 114, 184, 1) keyword.other
#B467FD RGB(180, 103, 253) RGBA(180, 103, 253, 1) markup
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#00F391 RGB(0, 243, 145) RGBA(0, 243, 145, 1) meta.tag
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) punctuation.definition.bracket
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) punctuation.definition.comment
#757575 RGB(117, 117, 117) RGBA(117, 117, 117, 1) punctuation.definition.string.begin
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) punctuation.definition.string.end
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) punctuation.separator
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) punctuation.separator.continuation
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) punctuation.terminator
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) storage
#FA72B8 RGB(250, 114, 184) RGBA(250, 114, 184, 1) storage.modifier
#FA72B8 RGB(250, 114, 184) RGBA(250, 114, 184, 1) storage.type
#FA72B8 RGB(250, 114, 184) RGBA(250, 114, 184, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#5093FE RGB(80, 147, 254) RGBA(80, 147, 254, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#B467FD RGB(180, 103, 253) RGBA(180, 103, 253, 1) support.function
#00F391 RGB(0, 243, 145) RGBA(0, 243, 145, 1) support.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.type
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.primitive
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.function
#00F391 RGB(0, 243, 145) RGBA(0, 243, 145, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.property
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.readwrite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.parameter
#B467FD RGB(180, 103, 253) RGBA(180, 103, 253, 1)