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
Pleasant Syntax
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#100A14 RGB(16, 10, 20) RGBA(16, 10, 20, 1) editor.background
#100A14 RGB(16, 10, 20) RGBA(16, 10, 20, 1) editor.foreground
#FFEDBC RGB(255, 237, 188) RGBA(255, 237, 188, 1) editorBracketHighlight.foreground1
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) editorBracketHighlight.foreground2
#F7E744 RGB(247, 231, 68) RGBA(247, 231, 68, 1) editorBracketHighlight.foreground3
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) editorBracketHighlight.foreground4
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) editorBracketHighlight.foreground5
#F7E744 RGB(247, 231, 68) RGBA(247, 231, 68, 1) editorBracketHighlight.foreground6
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) editorBracketMatch.border
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) editorError.foreground
#882639 RGB(136, 38, 57) RGBA(136, 38, 57, 1) editorHint.foreground
#57761F RGB(87, 118, 31) RGBA(87, 118, 31, 1) editorInfo.foreground
#33588A RGB(51, 88, 138) RGBA(51, 88, 138, 1) editorWarning.foreground
#88620A RGB(136, 98, 10) RGBA(136, 98, 10, 1) sideBarTitle.foreground
#FFEDBC RGB(255, 237, 188) RGBA(255, 237, 188, 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
#8A7D95 RGB(138, 125, 149) RGBA(138, 125, 149, 1) comment.block
#8A7D95 RGB(138, 125, 149) RGBA(138, 125, 149, 1) comment.block.documentation
#8A7D95 RGB(138, 125, 149) RGBA(138, 125, 149, 1) comment.line
#8A7D95 RGB(138, 125, 149) RGBA(138, 125, 149, 1) constant
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) constant.character
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) constant.character.escape
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) constant.numeric
#FF7AE4 RGB(255, 122, 228) RGBA(255, 122, 228, 1) constant.numeric.integer
#FF7AE4 RGB(255, 122, 228) RGBA(255, 122, 228, 1) constant.numeric.float
#FF7AE4 RGB(255, 122, 228) RGBA(255, 122, 228, 1) constant.numeric.hex
#FF7AE4 RGB(255, 122, 228) RGBA(255, 122, 228, 1) constant.numeric.octal
#FF7AE4 RGB(255, 122, 228) RGBA(255, 122, 228, 1) constant.other
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) constant.other.placeholder
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) constant.regexp
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) constant.rgb-value
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) entity
#F7E744 RGB(247, 231, 68) RGBA(247, 231, 68, 1) entity.name
#F7E744 RGB(247, 231, 68) RGBA(247, 231, 68, 1) entity.name.class
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) entity.name.function
#55A6FF RGB(85, 166, 255) RGBA(85, 166, 255, 1) entity.name.section
#55A6FF RGB(85, 166, 255) RGBA(85, 166, 255, 1) entity.name.tag
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) entity.name.type
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) entity.name.type.enum
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) entity.name.type.interface
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) entity.name.type.struct
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) entity.other
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) entity.other.attribute-name
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) entity.other.inherited-class
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) invalid
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) invalid.illegal
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) keyword
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) keyword.control
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) keyword.control.flow
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) keyword.operator
#F7E744 RGB(247, 231, 68) RGBA(247, 231, 68, 1) keyword.operator.new
#F7E744 RGB(247, 231, 68) RGBA(247, 231, 68, 1) keyword.operator.assignment
#F7E744 RGB(247, 231, 68) RGBA(247, 231, 68, 1) keyword.operator.arithmetic
#F7E744 RGB(247, 231, 68) RGBA(247, 231, 68, 1) keyword.operator.logical
#F7E744 RGB(247, 231, 68) RGBA(247, 231, 68, 1) keyword.other
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) markup
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) markup.bold
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) markup.changed
#FF7AE4 RGB(255, 122, 228) RGBA(255, 122, 228, 1) markup.deleted
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) markup.heading
#55A6FF RGB(85, 166, 255) RGBA(85, 166, 255, 1) markup.inserted
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) markup.italic
#FF7AE4 RGB(255, 122, 228) RGBA(255, 122, 228, 1) markup.list
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) markup.list.numbered
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) markup.list.unnumbered
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) markup.quote
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) markup.raw
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) meta
#FFDD82 RGB(255, 221, 130) RGBA(255, 221, 130, 1) meta.class
#FFDD82 RGB(255, 221, 130) RGBA(255, 221, 130, 1) meta.selector
#FF7AE4 RGB(255, 122, 228) RGBA(255, 122, 228, 1) punctuation.definition.bracket
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) punctuation.definition.comment
#8A7D95 RGB(138, 125, 149) RGBA(138, 125, 149, 1) punctuation.definition.string.begin
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) punctuation.definition.string.end
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) punctuation.separator
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) punctuation.separator.continuation
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) punctuation.terminator
#9DE229 RGB(157, 226, 41) RGBA(157, 226, 41, 1) storage
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) storage.modifier
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1) storage.type
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) string
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) string.interpolated
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) string.other
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) string.quoted
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) string.quoted.double
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) string.quoted.other
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) string.quoted.single
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) string.quoted.triple
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) string.regexp
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) string.template
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) string.unquoted
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) support
#FFDD82 RGB(255, 221, 130) RGBA(255, 221, 130, 1) support.class
#FFDD82 RGB(255, 221, 130) RGBA(255, 221, 130, 1) support.function
#2EDAFF RGB(46, 218, 255) RGBA(46, 218, 255, 1) variable
#FF425E RGB(255, 66, 94) RGBA(255, 66, 94, 1)