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
Azure Light Color Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) activityBar.foreground
#1293D8 RGB(18, 147, 216) RGBA(18, 147, 216, 1) editor.background
#F7F7F7 RGB(247, 247, 247) RGBA(247, 247, 247, 1) editor.findMatchBackground
#FFBC5D RGB(255, 188, 93) RGBA(255, 188, 93, 1) editor.findMatchHighlightBackground
#FFE9A6 RGB(255, 233, 166) RGBA(255, 233, 166, 1) editor.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.lineHighlightBackground
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) editor.selectionBackground
#BFDBFE RGB(191, 219, 254) RGBA(191, 219, 254, 1) editor.selectionHighlightBackground
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) editorCursor.foreground
#1293D8 RGB(18, 147, 216) RGBA(18, 147, 216, 1) editorGroupHeader.tabsBackground
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) editorLineNumber.foreground
#9DA39A RGB(157, 163, 154) RGBA(157, 163, 154, 1) panel.background
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) sideBar.background
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) statusBar.background
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) statusBar.debuggingBackground
#FFBC5D RGB(255, 188, 93) RGBA(255, 188, 93, 1) statusBar.debuggingForeground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.foreground
#474747 RGB(71, 71, 71) RGBA(71, 71, 71, 1) statusBar.noFolderBackground
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) statusBar.noFolderForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) terminal.ansiBlack
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) terminal.ansiBlue
#325CC0 RGB(50, 92, 192) RGBA(50, 92, 192, 1) terminal.ansiBrightBlack
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) terminal.ansiBrightBlue
#1293D8 RGB(18, 147, 216) RGBA(18, 147, 216, 1) terminal.ansiBrightCyan
#00AACB RGB(0, 170, 203) RGBA(0, 170, 203, 1) terminal.ansiBrightGreen
#60CB00 RGB(96, 203, 0) RGBA(96, 203, 0, 1) terminal.ansiBrightMagenta
#E64CE6 RGB(230, 76, 230) RGBA(230, 76, 230, 1) terminal.ansiBrightRed
#F05050 RGB(240, 80, 80) RGBA(240, 80, 80, 1) terminal.ansiBrightWhite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) terminal.ansiBrightYellow
#FFBC5D RGB(255, 188, 93) RGBA(255, 188, 93, 1) terminal.ansiCyan
#0083B2 RGB(0, 131, 178) RGBA(0, 131, 178, 1) terminal.ansiGreen
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) terminal.ansiMagenta
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) terminal.ansiRed
#AA3731 RGB(170, 55, 49) RGBA(170, 55, 49, 1) terminal.ansiWhite
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) terminal.ansiYellow
#CB9000 RGB(203, 144, 0) RGBA(203, 144, 0, 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
#6A737D RGB(106, 115, 125) RGBA(106, 115, 125, 1) comment.block
#6A737D RGB(106, 115, 125) RGBA(106, 115, 125, 1) comment.block.documentation
#6A737D RGB(106, 115, 125) RGBA(106, 115, 125, 1) comment.line
#6A737D RGB(106, 115, 125) RGBA(106, 115, 125, 1) constant
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) constant.character
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) constant.character.escape
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) constant.numeric
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) constant.numeric.integer
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) constant.numeric.float
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) constant.numeric.hex
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) constant.numeric.octal
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) constant.other
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) constant.other.placeholder
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) entity
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) entity.name
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) entity.name.class
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) entity.name.function
#1293D8 RGB(18, 147, 216) RGBA(18, 147, 216, 1) entity.name.method
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) entity.name.namespace
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) entity.name.section
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) entity.name.selector
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) entity.name.tag
#1293D8 RGB(18, 147, 216) RGBA(18, 147, 216, 1) entity.name.type
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) entity.name.type.enum
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) entity.name.type.interface
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) entity.name.type.struct
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) entity.other
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) entity.other.attribute-name
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) entity.other.inherited-class
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) invalid
#CD3131 RGB(205, 49, 49) RGBA(205, 49, 49, 1) invalid.deprecated
#CD3131 RGB(205, 49, 49) RGBA(205, 49, 49, 1) invalid.illegal
#CD3131 RGB(205, 49, 49) RGBA(205, 49, 49, 1) keyword
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) keyword.control
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) keyword.control.flow
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) keyword.operator
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) keyword.operator.new
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) keyword.operator.assignment
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) keyword.operator.arithmetic
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) keyword.operator.logical
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) keyword.other
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) markup
#FF66BB RGB(255, 102, 187) RGBA(255, 102, 187, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#1293D8 RGB(18, 147, 216) RGBA(18, 147, 216, 1) markup.deleted
#D96C75 RGB(217, 108, 117) RGBA(217, 108, 117, 1) markup.heading
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) markup.inline.raw
#FF66BB RGB(255, 102, 187) RGBA(255, 102, 187, 1) markup.inserted
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.quote
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) markup.underline
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) markup.underline.link
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) meta
#626A73 RGB(98, 106, 115) RGBA(98, 106, 115, 1) meta.function
#1293D8 RGB(18, 147, 216) RGBA(18, 147, 216, 1) meta.function-call
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) meta.tag
#1293D8 RGB(18, 147, 216) RGBA(18, 147, 216, 1) punctuation.definition.bracket
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) punctuation.definition.comment
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) punctuation.definition.string.begin
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) punctuation.definition.string.end
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) punctuation.separator
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) punctuation.separator.continuation
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) punctuation.terminator
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) storage
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) storage.modifier
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) storage.type
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) string
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.interpolated
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.other
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.quoted
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.quoted.double
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.quoted.other
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.quoted.single
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.quoted.triple
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.regexp
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.template
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.unquoted
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) support
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) support.class
#1293D8 RGB(18, 147, 216) RGBA(18, 147, 216, 1) support.constant
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) support.function
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) support.type
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) support.type.primitive
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) support.type.property-name
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) variable
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) variable.function
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) variable.language
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) variable.name
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1) variable.other
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) variable.other.constant
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) variable.other.property
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) variable.other.readwrite
#1293D8 RGB(18, 147, 216) RGBA(18, 147, 216, 1) variable.parameter
#000E16 RGB(0, 14, 22) RGBA(0, 14, 22, 1)