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
Powershell_ISE_Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) editor.foreground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) editor.lineHighlightBackground
#3F3F3F RGB(63, 63, 63) RGBA(63, 63, 63, 1) editor.selectionBackground
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) editor.selectionHighlightBackground
#FF020283 RGB(255, 2, 2) RGBA(255, 2, 2, 0.514) editorCursor.foreground
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) editorWhitespace.foreground
#3B3B3B RGB(59, 59, 59) RGBA(59, 59, 59, 1) terminal.background
#000D53 RGB(0, 13, 83) RGBA(0, 13, 83, 1) terminal.foreground
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 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
#60855B RGB(96, 133, 91) RGBA(96, 133, 91, 1) comment.block
#60855B RGB(96, 133, 91) RGBA(96, 133, 91, 1) comment.block.documentation
#60855B RGB(96, 133, 91) RGBA(96, 133, 91, 1) comment.line
#60855B RGB(96, 133, 91) RGBA(96, 133, 91, 1) constant
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.character
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.character.escape
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.integer
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.float
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.hex
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.octal
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.other
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.other.placeholder
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.regexp
#646695 RGB(100, 102, 149) RGBA(100, 102, 149, 1) entity
#DCDCAA RGB(220, 220, 170) RGBA(220, 220, 170, 1) entity.name
#C823FA RGB(200, 35, 250) RGBA(200, 35, 250, 1) entity.name.class
#DCDCAA RGB(220, 220, 170) RGBA(220, 220, 170, 1) entity.name.function
#DCDCAA RGB(220, 220, 170) RGBA(220, 220, 170, 1) entity.name.tag
#C823FA RGB(200, 35, 250) RGBA(200, 35, 250, 1) entity.name.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.type.enum
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.type.interface
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.type.struct
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.other
#DCDCAA RGB(220, 220, 170) RGBA(220, 220, 170, 1) entity.other.attribute-name
#DCDCAA RGB(220, 220, 170) RGBA(220, 220, 170, 1) entity.other.inherited-class
#DCDCAA RGB(220, 220, 170) RGBA(220, 220, 170, 1) invalid
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#C823FA RGB(200, 35, 250) RGBA(200, 35, 250, 1) keyword.control
#3CFF0B RGB(60, 255, 11) RGBA(60, 255, 11, 1) keyword.control.flow
#3CFF0B RGB(60, 255, 11) RGBA(60, 255, 11, 1) keyword.operator
#28C4C4 RGB(40, 196, 196) RGBA(40, 196, 196, 1) keyword.operator.new
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) keyword.operator.assignment
#B700FF RGB(183, 0, 255) RGBA(183, 0, 255, 1) keyword.operator.arithmetic
#28C4C4 RGB(40, 196, 196) RGBA(40, 196, 196, 1) keyword.operator.logical
#28C4C4 RGB(40, 196, 196) RGBA(40, 196, 196, 1) keyword.other
#C823FA RGB(200, 35, 250) RGBA(200, 35, 250, 1) markup
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.bold
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.changed
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.deleted
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.heading
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.inline.raw
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.inserted
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) meta
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) meta.preprocessor
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) meta.return-type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) meta.selector
#D7BA7D RGB(215, 186, 125) RGBA(215, 186, 125, 1) meta.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) punctuation.definition.string.begin
#22FD22 RGB(34, 253, 34) RGBA(34, 253, 34, 1) punctuation.definition.string.end
#22FD22 RGB(34, 253, 34) RGBA(34, 253, 34, 1) storage
#C823FA RGB(200, 35, 250) RGBA(200, 35, 250, 1) storage.modifier
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) storage.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) string
#E8ECE7 RGB(232, 236, 231) RGBA(232, 236, 231, 1) string.interpolated
#E8ECE7 RGB(232, 236, 231) RGBA(232, 236, 231, 1) string.other
#E8ECE7 RGB(232, 236, 231) RGBA(232, 236, 231, 1) string.quoted
#E8ECE7 RGB(232, 236, 231) RGBA(232, 236, 231, 1) string.quoted.double
#E8ECE7 RGB(232, 236, 231) RGBA(232, 236, 231, 1) string.quoted.other
#E8ECE7 RGB(232, 236, 231) RGBA(232, 236, 231, 1) string.quoted.single
#E8ECE7 RGB(232, 236, 231) RGBA(232, 236, 231, 1) string.quoted.triple
#E8ECE7 RGB(232, 236, 231) RGBA(232, 236, 231, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#E8ECE7 RGB(232, 236, 231) RGBA(232, 236, 231, 1) string.unquoted
#E8ECE7 RGB(232, 236, 231) RGBA(232, 236, 231, 1) support
#DCDCAA RGB(220, 220, 170) RGBA(220, 220, 170, 1) support.class
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.constant
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.function
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.other
#E6D1D1 RGB(230, 209, 209) RGBA(230, 209, 209, 1) support.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.primitive
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.property-name
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) support.variable
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable
#FF9C08 RGB(255, 156, 8) RGBA(255, 156, 8, 1) variable.function
#FF9C08 RGB(255, 156, 8) RGBA(255, 156, 8, 1) variable.language
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) variable.name
#FF9C08 RGB(255, 156, 8) RGBA(255, 156, 8, 1) variable.other
#FF9C08 RGB(255, 156, 8) RGBA(255, 156, 8, 1) variable.other.constant
#FF9C08 RGB(255, 156, 8) RGBA(255, 156, 8, 1) variable.other.property
#FF9C08 RGB(255, 156, 8) RGBA(255, 156, 8, 1) variable.other.readwrite
#FF9C08 RGB(255, 156, 8) RGBA(255, 156, 8, 1) variable.parameter
#E6992E RGB(230, 153, 46) RGBA(230, 153, 46, 1)