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
srcery
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#1C1B19 RGB(28, 27, 25) RGBA(28, 27, 25, 1) activityBar.foreground
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) editor.background
#1C1B19 RGB(28, 27, 25) RGBA(28, 27, 25, 1) editor.foreground
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) editor.lineHighlightBackground
#2D2B28 RGB(45, 43, 40) RGBA(45, 43, 40, 1) editor.selectionBackground
#519F5066 RGB(81, 159, 80) RGBA(81, 159, 80, 0.4) editorLineNumber.activeForeground
#98BC37 RGB(152, 188, 55) RGBA(152, 188, 55, 1) sideBar.background
#2D2B28 RGB(45, 43, 40) RGBA(45, 43, 40, 1) sideBar.foreground
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) sideBarTitle.foreground
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) statusBar.background
#2D2B28 RGB(45, 43, 40) RGBA(45, 43, 40, 1) statusBar.noFolderBackground
#2D2B28 RGB(45, 43, 40) RGBA(45, 43, 40, 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
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) comment.block
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) comment.block.documentation
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) comment.line
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) constant
#8EB2F7 RGB(142, 178, 247) RGBA(142, 178, 247, 1) constant.character
#E02C6D RGB(224, 44, 109) RGBA(224, 44, 109, 1) constant.character.escape
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) constant.numeric
#E02C6D RGB(224, 44, 109) RGBA(224, 44, 109, 1) constant.numeric.integer
#E02C6D RGB(224, 44, 109) RGBA(224, 44, 109, 1) constant.numeric.float
#E02C6D RGB(224, 44, 109) RGBA(224, 44, 109, 1) constant.numeric.hex
#E02C6D RGB(224, 44, 109) RGBA(224, 44, 109, 1) constant.numeric.octal
#E02C6D RGB(224, 44, 109) RGBA(224, 44, 109, 1) constant.other
#8EB2F7 RGB(142, 178, 247) RGBA(142, 178, 247, 1) constant.other.placeholder
#5573A3 RGB(85, 115, 163) RGBA(85, 115, 163, 1) entity
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.name
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.name.class
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.name.function
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) entity.name.method
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.name.namespace
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.name.section
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.name.selector
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.name.tag
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) entity.name.type
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.name.type.enum
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.name.type.interface
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.name.type.struct
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) entity.other
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) entity.other.attribute-name
#519F50 RGB(81, 159, 80) RGBA(81, 159, 80, 1) entity.other.inherited-class
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) invalid
#FF3128 RGB(255, 49, 40) RGBA(255, 49, 40, 1) invalid.deprecated
#FF3128 RGB(255, 49, 40) RGBA(255, 49, 40, 1) invalid.illegal
#FF3128 RGB(255, 49, 40) RGBA(255, 49, 40, 1) keyword
#FF3128 RGB(255, 49, 40) RGBA(255, 49, 40, 1) keyword.control
#FED06E RGB(254, 208, 110) RGBA(254, 208, 110, 1) keyword.control.flow
#FED06E RGB(254, 208, 110) RGBA(254, 208, 110, 1) keyword.operator
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) keyword.operator.new
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) keyword.operator.assignment
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) keyword.operator.arithmetic
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) keyword.operator.logical
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) keyword.other
#E02C6D RGB(224, 44, 109) RGBA(224, 44, 109, 1) markup
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) markup.bold
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) markup.changed
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) markup.deleted
#F75341 RGB(247, 83, 65) RGBA(247, 83, 65, 1) markup.heading
#0AAEB3 RGB(10, 174, 179) RGBA(10, 174, 179, 1) markup.inline.raw
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1) markup.inserted
#98BC37 RGB(152, 188, 55) RGBA(152, 188, 55, 1) markup.italic
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) markup.quote
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) markup.raw
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) markup.underline
#8EB2F7 RGB(142, 178, 247) RGBA(142, 178, 247, 1) markup.underline.link
#8EB2F7 RGB(142, 178, 247) RGBA(142, 178, 247, 1) meta
#2D2B28 RGB(45, 43, 40) RGBA(45, 43, 40, 1) meta.function-call
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) meta.tag
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) punctuation.definition.bracket
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) punctuation.definition.comment
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) punctuation.definition.string.begin
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) punctuation.definition.string.end
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) punctuation.separator
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) punctuation.separator.continuation
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) punctuation.terminator
#918175 RGB(145, 129, 117) RGBA(145, 129, 117, 1) storage
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) storage.modifier
#FF3128 RGB(255, 49, 40) RGBA(255, 49, 40, 1) storage.type
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) string
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) string.interpolated
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) string.other
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) string.quoted
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) string.quoted.double
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) string.quoted.other
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) string.quoted.single
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) string.quoted.triple
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) string.regexp
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) string.template
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) string.unquoted
#53FDE9 RGB(83, 253, 233) RGBA(83, 253, 233, 1) support
#519F50 RGB(81, 159, 80) RGBA(81, 159, 80, 1) support.class
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) support.constant
#E02C6D RGB(224, 44, 109) RGBA(224, 44, 109, 1) support.function
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) support.other
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) support.type
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) support.type.primitive
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) support.type.property-name
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) variable
#5573A3 RGB(85, 115, 163) RGBA(85, 115, 163, 1) variable.function
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) variable.language
#FBB829 RGB(251, 184, 41) RGBA(251, 184, 41, 1) variable.name
#5573A3 RGB(85, 115, 163) RGBA(85, 115, 163, 1) variable.other
#5573A3 RGB(85, 115, 163) RGBA(85, 115, 163, 1) variable.other.constant
#5573A3 RGB(85, 115, 163) RGBA(85, 115, 163, 1) variable.other.property
#5573A3 RGB(85, 115, 163) RGBA(85, 115, 163, 1) variable.other.readwrite
#5573A3 RGB(85, 115, 163) RGBA(85, 115, 163, 1) variable.parameter
#FCE8C3 RGB(252, 232, 195) RGBA(252, 232, 195, 1)