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
Seti (Improved)
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#080A0C RGB(8, 10, 12) RGBA(8, 10, 12, 1) activityBar.border
#364958 RGB(54, 73, 88) RGBA(54, 73, 88, 1) activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#0E1112 RGB(14, 17, 18) RGBA(14, 17, 18, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editor.inactiveSelectionBackground
#3A3D41 RGB(58, 61, 65) RGBA(58, 61, 65, 1) editor.selectionHighlightBackground
#ADD6FF26 RGB(173, 214, 255) RGBA(173, 214, 255, 0.149) editorGroupHeader.tabsBackground
#111213 RGB(17, 18, 19) RGBA(17, 18, 19, 1) editorGutter.background
#080A0C RGB(8, 10, 12) RGBA(8, 10, 12, 1) editorIndentGuide.activeBackground
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) editorIndentGuide.background
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) list.dropBackground
#383B3D RGB(56, 59, 61) RGBA(56, 59, 61, 1) panel.background
#080A0C RGB(8, 10, 12) RGBA(8, 10, 12, 1) sideBar.background
#080A0C RGB(8, 10, 12) RGBA(8, 10, 12, 1) sideBar.border
#364958 RGB(54, 73, 88) RGBA(54, 73, 88, 1) sideBarSectionHeader.background
#0E1112 RGB(14, 17, 18) RGBA(14, 17, 18, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#080A0C RGB(8, 10, 12) RGBA(8, 10, 12, 1) statusBar.border
#364958 RGB(54, 73, 88) RGBA(54, 73, 88, 1) tab.activeBackground
#1F2326 RGB(31, 35, 38) RGBA(31, 35, 38, 1) tab.inactiveBackground
#111213 RGB(17, 18, 19) RGBA(17, 18, 19, 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
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 1) comment.block
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 1) comment.block.documentation
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 1) comment.line
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 1) constant
#A074C4 RGB(160, 116, 196) RGBA(160, 116, 196, 1) constant.character
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) constant.character.escape
#A074C4 RGB(160, 116, 196) RGBA(160, 116, 196, 1) constant.numeric
#A074C4 RGB(160, 116, 196) RGBA(160, 116, 196, 1) constant.numeric.integer
#A074C4 RGB(160, 116, 196) RGBA(160, 116, 196, 1) constant.numeric.float
#A074C4 RGB(160, 116, 196) RGBA(160, 116, 196, 1) constant.numeric.hex
#A074C4 RGB(160, 116, 196) RGBA(160, 116, 196, 1) constant.numeric.octal
#A074C4 RGB(160, 116, 196) RGBA(160, 116, 196, 1) constant.other
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) constant.regexp
#646695 RGB(100, 102, 149) RGBA(100, 102, 149, 1) entity
#8DC149 RGB(141, 193, 73) RGBA(141, 193, 73, 1) entity.name
#519ABA RGB(81, 154, 186) RGBA(81, 154, 186, 1) entity.name.class
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.function
#CBCB41 RGB(203, 203, 65) RGBA(203, 203, 65, 1) entity.name.tag
#519ABA RGB(81, 154, 186) RGBA(81, 154, 186, 1) entity.name.type
#519ABA RGB(81, 154, 186) RGBA(81, 154, 186, 1) entity.name.type.enum
#519ABA RGB(81, 154, 186) RGBA(81, 154, 186, 1) entity.name.type.interface
#519ABA RGB(81, 154, 186) RGBA(81, 154, 186, 1) entity.name.type.struct
#519ABA RGB(81, 154, 186) RGBA(81, 154, 186, 1) entity.other
#8DC149 RGB(141, 193, 73) RGBA(141, 193, 73, 1) entity.other.attribute-name
#C03B41 RGB(192, 59, 65) RGBA(192, 59, 65, 1) entity.other.inherited-class
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) invalid
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) invalid.deprecated
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) invalid.illegal
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) keyword
#C03B41 RGB(192, 59, 65) RGBA(192, 59, 65, 1) keyword.control
#8DC149 RGB(141, 193, 73) RGBA(141, 193, 73, 1) keyword.control.flow
#8DC149 RGB(141, 193, 73) RGBA(141, 193, 73, 1) keyword.operator
#C03B41 RGB(192, 59, 65) RGBA(192, 59, 65, 1) keyword.operator.new
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) keyword.operator.assignment
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 1) keyword.operator.arithmetic
#C03B41 RGB(192, 59, 65) RGBA(192, 59, 65, 1) keyword.operator.logical
#C03B41 RGB(192, 59, 65) RGBA(192, 59, 65, 1) keyword.other
#C03B41 RGB(192, 59, 65) RGBA(192, 59, 65, 1) markup
#E37933 RGB(227, 121, 51) RGBA(227, 121, 51, 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
#E37933 RGB(227, 121, 51) RGBA(227, 121, 51, 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
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 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.tag
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 1) meta.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) punctuation.definition.comment
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 1) punctuation.definition.string.begin
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) punctuation.definition.string.end
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) punctuation.separator
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 1) punctuation.separator.continuation
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 1) punctuation.terminator
#4D5A5E RGB(77, 90, 94) RGBA(77, 90, 94, 1) storage
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) storage.modifier
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) storage.type
#D4D7D6 RGB(212, 215, 214) RGBA(212, 215, 214, 1) string
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) string.interpolated
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) string.other
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) string.quoted
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) string.quoted.double
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) string.quoted.other
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) string.quoted.single
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) string.quoted.triple
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) string.unquoted
#9AC4D7 RGB(154, 196, 215) RGBA(154, 196, 215, 1) support
#519ABA RGB(81, 154, 186) RGBA(81, 154, 186, 1) support.class
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) support.constant
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.function
#CBCB41 RGB(203, 203, 65) RGBA(203, 203, 65, 1) support.other
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) support.type.primitive
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 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
#C4AA72 RGB(196, 170, 114) RGBA(196, 170, 114, 1) variable.function
#C4AA72 RGB(196, 170, 114) RGBA(196, 170, 114, 1) variable.language
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) variable.name
#C4AA72 RGB(196, 170, 114) RGBA(196, 170, 114, 1) variable.other
#C4AA72 RGB(196, 170, 114) RGBA(196, 170, 114, 1) variable.other.constant
#C4AA72 RGB(196, 170, 114) RGBA(196, 170, 114, 1) variable.other.property
#C4AA72 RGB(196, 170, 114) RGBA(196, 170, 114, 1) variable.other.readwrite
#C4AA72 RGB(196, 170, 114) RGBA(196, 170, 114, 1) variable.parameter
#CBCB41 RGB(203, 203, 65) RGBA(203, 203, 65, 1)