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
shogun
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#484848 RGB(72, 72, 72) RGBA(72, 72, 72, 1) editor.background
#292929 RGB(41, 41, 41) RGBA(41, 41, 41, 1) editor.foreground
#F5F5F5 RGB(245, 245, 245) RGBA(245, 245, 245, 1) sideBarTitle.foreground
#F5F5F5 RGB(245, 245, 245) RGBA(245, 245, 245, 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
#A0ACB6 RGB(160, 172, 182) RGBA(160, 172, 182, 1) comment.block
#A0ACB6 RGB(160, 172, 182) RGBA(160, 172, 182, 1) comment.block.documentation
#A0ACB6 RGB(160, 172, 182) RGBA(160, 172, 182, 1) comment.line
#A0ACB6 RGB(160, 172, 182) RGBA(160, 172, 182, 1) constant
#FFE08C RGB(255, 224, 140) RGBA(255, 224, 140, 1) constant.character
#FFB53D RGB(255, 181, 61) RGBA(255, 181, 61, 1) constant.character.escape
#F09292 RGB(240, 146, 146) RGBA(240, 146, 146, 1) constant.numeric
#FFB53D RGB(255, 181, 61) RGBA(255, 181, 61, 1) constant.numeric.integer
#FFB53D RGB(255, 181, 61) RGBA(255, 181, 61, 1) constant.numeric.float
#FFB53D RGB(255, 181, 61) RGBA(255, 181, 61, 1) constant.numeric.hex
#FFB53D RGB(255, 181, 61) RGBA(255, 181, 61, 1) constant.numeric.octal
#FFB53D RGB(255, 181, 61) RGBA(255, 181, 61, 1) constant.other
#FFE08C RGB(255, 224, 140) RGBA(255, 224, 140, 1) constant.other.placeholder
#FFE040 RGB(255, 224, 64) RGBA(255, 224, 64, 1) entity
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.name
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.name.class
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.name.function
#6AB4FF RGB(106, 180, 255) RGBA(106, 180, 255, 1) entity.name.method
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.name.namespace
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.name.section
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.name.selector
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.name.tag
#FF6F67 RGB(255, 111, 103) RGBA(255, 111, 103, 1) entity.name.type
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.name.type.enum
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.name.type.interface
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.name.type.struct
#D8F0AB RGB(216, 240, 171) RGBA(216, 240, 171, 1) entity.other
#FFF168 RGB(255, 241, 104) RGBA(255, 241, 104, 1) entity.other.attribute-name
#FFF168 RGB(255, 241, 104) RGBA(255, 241, 104, 1) entity.other.inherited-class
#AEDC6F RGB(174, 220, 111) RGBA(174, 220, 111, 1) invalid
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) invalid.deprecated
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) invalid.illegal
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) keyword
#B668CC RGB(182, 104, 204) RGBA(182, 104, 204, 1) keyword.control
#59D8E1 RGB(89, 216, 225) RGBA(89, 216, 225, 1) keyword.control.flow
#59D8E1 RGB(89, 216, 225) RGBA(89, 216, 225, 1) keyword.operator
#B668CC RGB(182, 104, 204) RGBA(182, 104, 204, 1) keyword.operator.new
#B668CC RGB(182, 104, 204) RGBA(182, 104, 204, 1) keyword.operator.assignment
#B668CC RGB(182, 104, 204) RGBA(182, 104, 204, 1) keyword.operator.arithmetic
#B668CC RGB(182, 104, 204) RGBA(182, 104, 204, 1) keyword.operator.logical
#B668CC RGB(182, 104, 204) RGBA(182, 104, 204, 1) keyword.other
#FFB53D RGB(255, 181, 61) RGBA(255, 181, 61, 1) markup
#F5FFFF RGB(245, 255, 255) RGBA(245, 255, 255, 1) markup.bold
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) markup.changed
#6DC7FF RGB(109, 199, 255) RGBA(109, 199, 255, 1) markup.deleted
#F09292 RGB(240, 146, 146) RGBA(240, 146, 146, 1) markup.heading
#AEDC6F RGB(174, 220, 111) RGBA(174, 220, 111, 1) markup.inline.raw
#DABEFF RGB(218, 190, 255) RGBA(218, 190, 255, 1) markup.inserted
#A3E9A5 RGB(163, 233, 165) RGBA(163, 233, 165, 1) markup.italic
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) markup.raw
#F5FFFF RGB(245, 255, 255) RGBA(245, 255, 255, 1) markup.underline
#FF9F87 RGB(255, 159, 135) RGBA(255, 159, 135, 1) markup.underline.link
#FF9F87 RGB(255, 159, 135) RGBA(255, 159, 135, 1) meta
#858F9A RGB(133, 143, 154) RGBA(133, 143, 154, 1) meta.function-call
#6AB4FF RGB(106, 180, 255) RGBA(106, 180, 255, 1) meta.tag
#59D8E1 RGB(89, 216, 225) RGBA(89, 216, 225, 1) punctuation.definition.bracket
#59D8E1 RGB(89, 216, 225) RGBA(89, 216, 225, 1) punctuation.definition.comment
#A0ACB6 RGB(160, 172, 182) RGBA(160, 172, 182, 1) punctuation.definition.string.begin
#59D8E1 RGB(89, 216, 225) RGBA(89, 216, 225, 1) punctuation.definition.string.end
#59D8E1 RGB(89, 216, 225) RGBA(89, 216, 225, 1) punctuation.separator
#59D8E1 RGB(89, 216, 225) RGBA(89, 216, 225, 1) punctuation.separator.continuation
#59D8E1 RGB(89, 216, 225) RGBA(89, 216, 225, 1) punctuation.terminator
#59D8E1 RGB(89, 216, 225) RGBA(89, 216, 225, 1) storage
#B668CC RGB(182, 104, 204) RGBA(182, 104, 204, 1) storage.modifier
#B668CC RGB(182, 104, 204) RGBA(182, 104, 204, 1) storage.type
#B668CC RGB(182, 104, 204) RGBA(182, 104, 204, 1) string
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) string.interpolated
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) string.other
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) string.quoted
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) string.quoted.double
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) string.quoted.other
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) string.quoted.single
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) string.quoted.triple
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) string.regexp
#D38ADE RGB(211, 138, 222) RGBA(211, 138, 222, 1) string.template
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) string.unquoted
#F69498 RGB(246, 148, 152) RGBA(246, 148, 152, 1) support
#6DC7FF RGB(109, 199, 255) RGBA(109, 199, 255, 1) support.class
#FFCC4D RGB(255, 204, 77) RGBA(255, 204, 77, 1) support.constant
#FFB53D RGB(255, 181, 61) RGBA(255, 181, 61, 1) support.function
#6AB4FF RGB(106, 180, 255) RGBA(106, 180, 255, 1) support.other
#FFCC4D RGB(255, 204, 77) RGBA(255, 204, 77, 1) support.type
#33CFE4 RGB(51, 207, 228) RGBA(51, 207, 228, 1) support.type.primitive
#33CFE4 RGB(51, 207, 228) RGBA(51, 207, 228, 1) support.type.property-name
#4EC7B9 RGB(78, 199, 185) RGBA(78, 199, 185, 1) variable
#FFE040 RGB(255, 224, 64) RGBA(255, 224, 64, 1) variable.function
#6AB4FF RGB(106, 180, 255) RGBA(106, 180, 255, 1) variable.language
#FFE040 RGB(255, 224, 64) RGBA(255, 224, 64, 1) variable.name
#FFE040 RGB(255, 224, 64) RGBA(255, 224, 64, 1) variable.other
#FF6F67 RGB(255, 111, 103) RGBA(255, 111, 103, 1) variable.other.constant
#FF6F67 RGB(255, 111, 103) RGBA(255, 111, 103, 1) variable.other.property
#FF6F67 RGB(255, 111, 103) RGBA(255, 111, 103, 1) variable.other.readwrite
#FF6F67 RGB(255, 111, 103) RGBA(255, 111, 103, 1) variable.parameter
#FFB53D RGB(255, 181, 61) RGBA(255, 181, 61, 1)