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
F333 Colors Green
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#3C8F3C RGB(60, 143, 60) RGBA(60, 143, 60, 1) activityBar.foreground
#C2C2C2 RGB(194, 194, 194) RGBA(194, 194, 194, 1) activityBar.inactiveForeground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) activityBarBadge.background
#063041 RGB(6, 48, 65) RGBA(6, 48, 65, 1) debugConsole.errorForeground
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) debugConsole.infoForeground
#C2C2C2 RGB(194, 194, 194) RGBA(194, 194, 194, 1) debugConsole.sourceForeground
#C2C2C2 RGB(194, 194, 194) RGBA(194, 194, 194, 1) editor.background
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) editor.foreground
#C2C2C2 RGB(194, 194, 194) RGBA(194, 194, 194, 1) gitDecoration.addedResourceForeground
#C2C2C2 RGB(194, 194, 194) RGBA(194, 194, 194, 1) gitDecoration.conflictingResourceForeground
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) gitDecoration.deletedResourceForeground
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) gitDecoration.ignoredResourceForeground
#FF6200 RGB(255, 98, 0) RGBA(255, 98, 0, 1) gitDecoration.modifiedResourceForeground
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) gitDecoration.renamedResourceForeground
#FF6200 RGB(255, 98, 0) RGBA(255, 98, 0, 1) gitDecoration.stageDeletedResourceForeground
#FF6200 RGB(255, 98, 0) RGBA(255, 98, 0, 1) gitDecoration.stageModifiedResourceForeground
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) gitDecoration.submoduleResourceForeground
#FF6200 RGB(255, 98, 0) RGBA(255, 98, 0, 1) gitDecoration.untrackedResourceForeground
#FF6200 RGB(255, 98, 0) RGBA(255, 98, 0, 1) statusBar.background
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) statusBar.debuggingBackground
#3C8F3C RGB(60, 143, 60) RGBA(60, 143, 60, 1) statusBar.debuggingForeground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) statusBar.foreground
#E4E3D3 RGB(228, 227, 211) RGBA(228, 227, 211, 1) statusBar.noFolderBackground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) statusBar.noFolderForeground
#C2C2C2 RGB(194, 194, 194) RGBA(194, 194, 194, 1) tab.activeBackground
#3C8F3C RGB(60, 143, 60) RGBA(60, 143, 60, 1) tab.activeForeground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) tab.activeModifiedBorder
#3C8F3C RGB(60, 143, 60) RGBA(60, 143, 60, 1) tab.inactiveBackground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) tab.inactiveForeground
#C2C2C2 RGB(194, 194, 194) RGBA(194, 194, 194, 1) tab.inactiveModifiedBorder
#3C8F3C RGB(60, 143, 60) RGBA(60, 143, 60, 1) tab.unfocusedActiveBackground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) tab.unfocusedActiveForeground
#C2C2C2 RGB(194, 194, 194) RGBA(194, 194, 194, 1) titleBar.activeBackground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) titleBar.activeForeground
#E4E3D3 RGB(228, 227, 211) RGBA(228, 227, 211, 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
#444B6A RGB(68, 75, 106) RGBA(68, 75, 106, 1) comment.block
#444B6A RGB(68, 75, 106) RGBA(68, 75, 106, 1) comment.block.documentation
#444B6A RGB(68, 75, 106) RGBA(68, 75, 106, 1) comment.line
#444B6A RGB(68, 75, 106) RGBA(68, 75, 106, 1) constant
#73DACA RGB(115, 218, 202) RGBA(115, 218, 202, 1) constant.character
#BB9AF7 RGB(187, 154, 247) RGBA(187, 154, 247, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#FF9E64 RGB(255, 158, 100) RGBA(255, 158, 100, 1) constant.numeric.integer
#FF9E64 RGB(255, 158, 100) RGBA(255, 158, 100, 1) constant.numeric.float
#FF9E64 RGB(255, 158, 100) RGBA(255, 158, 100, 1) constant.numeric.hex
#FF9E64 RGB(255, 158, 100) RGBA(255, 158, 100, 1) constant.numeric.octal
#FF9E64 RGB(255, 158, 100) RGBA(255, 158, 100, 1) constant.other
#E0AF68 RGB(224, 175, 104) RGBA(224, 175, 104, 1) constant.other.placeholder
#C0CAF5 RGB(192, 202, 245) RGBA(192, 202, 245, 1) entity
#F7768E RGB(247, 118, 142) RGBA(247, 118, 142, 1) entity.name
#747CA1 RGB(116, 124, 161) RGBA(116, 124, 161, 1) entity.name.class
#747CA1 RGB(116, 124, 161) RGBA(116, 124, 161, 1) entity.name.function
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) entity.name.method
#747CA1 RGB(116, 124, 161) RGBA(116, 124, 161, 1) entity.name.namespace
#0DB9D7 RGB(13, 185, 215) RGBA(13, 185, 215, 1) entity.name.section
#747CA1 RGB(116, 124, 161) RGBA(116, 124, 161, 1) entity.name.selector
#747CA1 RGB(116, 124, 161) RGBA(116, 124, 161, 1) entity.name.tag
#DE5971 RGB(222, 89, 113) RGBA(222, 89, 113, 1) entity.name.type
#747CA1 RGB(116, 124, 161) RGBA(116, 124, 161, 1) entity.name.type.enum
#747CA1 RGB(116, 124, 161) RGBA(116, 124, 161, 1) entity.name.type.interface
#747CA1 RGB(116, 124, 161) RGBA(116, 124, 161, 1) entity.name.type.struct
#747CA1 RGB(116, 124, 161) RGBA(116, 124, 161, 1) entity.other
#BB9AF7 RGB(187, 154, 247) RGBA(187, 154, 247, 1) entity.other.attribute-name
#BB9AF7 RGB(187, 154, 247) RGBA(187, 154, 247, 1) entity.other.inherited-class
#BB9AF7 RGB(187, 154, 247) RGBA(187, 154, 247, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#BB9AF7 RGB(187, 154, 247) RGBA(187, 154, 247, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#BB9AF7 RGB(187, 154, 247) RGBA(187, 154, 247, 1) keyword.control
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) keyword.control.flow
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) keyword.operator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.new
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.assignment
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.arithmetic
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.logical
#BB9AF7 RGB(187, 154, 247) RGBA(187, 154, 247, 1) keyword.other
#7DCFFF RGB(125, 207, 255) RGBA(125, 207, 255, 1) markup
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) markup.bold
#C0CAF5 RGB(192, 202, 245) RGBA(192, 202, 245, 1) markup.changed
#6183BB RGB(97, 131, 187) RGBA(97, 131, 187, 1) markup.deleted
#914C54 RGB(145, 76, 84) RGBA(145, 76, 84, 1) markup.heading
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) markup.inline.raw
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) markup.inserted
#449DAB RGB(68, 157, 171) RGBA(68, 157, 171, 1) markup.italic
#C0CAF5 RGB(192, 202, 245) RGBA(192, 202, 245, 1) markup.list
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) markup.list.numbered
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) markup.list.unnumbered
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) markup.other
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) markup.quote
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) markup.raw
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) markup.underline
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) markup.underline.link
#73DACA RGB(115, 218, 202) RGBA(115, 218, 202, 1) meta
#73DACA RGB(115, 218, 202) RGBA(115, 218, 202, 1) meta.block
#9ABDF5 RGB(154, 189, 245) RGBA(154, 189, 245, 1) meta.function
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) meta.function-call
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) meta.preprocessor
#73DACA RGB(115, 218, 202) RGBA(115, 218, 202, 1) meta.tag
#DE5971 RGB(222, 89, 113) RGBA(222, 89, 113, 1) punctuation.definition.bracket
#C0CAF5 RGB(192, 202, 245) RGBA(192, 202, 245, 1) punctuation.definition.comment
#444B6A RGB(68, 75, 106) RGBA(68, 75, 106, 1) punctuation.definition.string.begin
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.string.end
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.separator
#C0CAF5 RGB(192, 202, 245) RGBA(192, 202, 245, 1) punctuation.separator.continuation
#C0CAF5 RGB(192, 202, 245) RGBA(192, 202, 245, 1) punctuation.terminator
#C0CAF5 RGB(192, 202, 245) RGBA(192, 202, 245, 1) storage
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) storage.modifier
#9D7CD8 RGB(157, 124, 216) RGBA(157, 124, 216, 1) storage.type
#9D7CD8 RGB(157, 124, 216) RGBA(157, 124, 216, 1) string
#9ECE6A RGB(158, 206, 106) RGBA(158, 206, 106, 1) string.interpolated
#9ECE6A RGB(158, 206, 106) RGBA(158, 206, 106, 1) string.other
#9ECE6A RGB(158, 206, 106) RGBA(158, 206, 106, 1) string.quoted
#9ECE6A RGB(158, 206, 106) RGBA(158, 206, 106, 1) string.quoted.double
#9ECE6A RGB(158, 206, 106) RGBA(158, 206, 106, 1) string.quoted.other
#9ECE6A RGB(158, 206, 106) RGBA(158, 206, 106, 1) string.quoted.single
#9ECE6A RGB(158, 206, 106) RGBA(158, 206, 106, 1) string.quoted.triple
#9ECE6A RGB(158, 206, 106) RGBA(158, 206, 106, 1) string.regexp
#B4F9F8 RGB(180, 249, 248) RGBA(180, 249, 248, 1) string.template
#9ECE6A RGB(158, 206, 106) RGBA(158, 206, 106, 1) string.unquoted
#9ECE6A RGB(158, 206, 106) RGBA(158, 206, 106, 1) support
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) support.class
#0DB9D7 RGB(13, 185, 215) RGBA(13, 185, 215, 1) support.constant
#FF9E64 RGB(255, 158, 100) RGBA(255, 158, 100, 1) support.function
#0DB9D7 RGB(13, 185, 215) RGBA(13, 185, 215, 1) support.other
#5A638C RGB(90, 99, 140) RGBA(90, 99, 140, 1) support.type
#0DB9D7 RGB(13, 185, 215) RGBA(13, 185, 215, 1) support.type.primitive
#0DB9D7 RGB(13, 185, 215) RGBA(13, 185, 215, 1) support.type.property-name
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) support.variable
#C0CAF5 RGB(192, 202, 245) RGBA(192, 202, 245, 1) variable
#E0AF68 RGB(224, 175, 104) RGBA(224, 175, 104, 1) variable.function
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) variable.language
#F7768E RGB(247, 118, 142) RGBA(247, 118, 142, 1) variable.name
#E0AF68 RGB(224, 175, 104) RGBA(224, 175, 104, 1) variable.other
#F7768E RGB(247, 118, 142) RGBA(247, 118, 142, 1) variable.other.constant
#BB9AF7 RGB(187, 154, 247) RGBA(187, 154, 247, 1) variable.other.property
#7DCFFF RGB(125, 207, 255) RGBA(125, 207, 255, 1) variable.other.readwrite
#BB9AF7 RGB(187, 154, 247) RGBA(187, 154, 247, 1) variable.parameter
#E0AF68 RGB(224, 175, 104) RGBA(224, 175, 104, 1)