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
Teal Ember Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#262933 RGB(38, 41, 51) RGBA(38, 41, 51, 1) activityBarBadge.background
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) button.background
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) editor.background
#1E2025 RGB(30, 32, 37) RGBA(30, 32, 37, 1) editor.foreground
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) editor.lineHighlightBackground
#21242B RGB(33, 36, 43) RGBA(33, 36, 43, 1) editor.selectionHighlightBackground
#958334 RGB(149, 131, 52) RGBA(149, 131, 52, 1) editor.wordHighlightBackground
#64646D66 RGB(100, 100, 109) RGBA(100, 100, 109, 0.4) editorBracketHighlight.foreground2
#D8D5DB RGB(216, 213, 219) RGBA(216, 213, 219, 1) editorBracketHighlight.foreground3
#D8D5DB RGB(216, 213, 219) RGBA(216, 213, 219, 1) editorGroupHeader.tabsBackground
#21242B RGB(33, 36, 43) RGBA(33, 36, 43, 1) editorLink.activeForeground
#FEF1B7 RGB(254, 241, 183) RGBA(254, 241, 183, 1) focusBorder
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) inputOption.activeBorder
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) list.activeSelectionBackground
#2A2F39 RGB(42, 47, 57) RGBA(42, 47, 57, 1) mergeEditor.change.background
#5C5014 RGB(92, 80, 20) RGBA(92, 80, 20, 1) panel.background
#21242B RGB(33, 36, 43) RGBA(33, 36, 43, 1) sideBar.background
#21242B RGB(33, 36, 43) RGBA(33, 36, 43, 1) sideBarTitle.foreground
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) statusBar.background
#21242B RGB(33, 36, 43) RGBA(33, 36, 43, 1) statusBar.debuggingBackground
#21242B RGB(33, 36, 43) RGBA(33, 36, 43, 1) statusBar.noFolderBackground
#21242B RGB(33, 36, 43) RGBA(33, 36, 43, 1) tab.activeBackground
#1E2025 RGB(30, 32, 37) RGBA(30, 32, 37, 1) tab.inactiveBackground
#21242B RGB(33, 36, 43) RGBA(33, 36, 43, 1) terminal.ansiBlack
#1E2025 RGB(30, 32, 37) RGBA(30, 32, 37, 1) terminal.ansiBlue
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) terminal.ansiBrightBlack
#40434C RGB(64, 67, 76) RGBA(64, 67, 76, 1) terminal.ansiBrightBlue
#1A5148 RGB(26, 81, 72) RGBA(26, 81, 72, 1) terminal.ansiBrightCyan
#008169 RGB(0, 129, 105) RGBA(0, 129, 105, 1) terminal.ansiBrightGreen
#457C38 RGB(69, 124, 56) RGBA(69, 124, 56, 1) terminal.ansiBrightMagenta
#682681 RGB(104, 38, 129) RGBA(104, 38, 129, 1) terminal.ansiBrightRed
#8E0F3A RGB(142, 15, 58) RGBA(142, 15, 58, 1) terminal.ansiBrightWhite
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) terminal.ansiBrightYellow
#958334 RGB(149, 131, 52) RGBA(149, 131, 52, 1) terminal.ansiCyan
#08E7C5 RGB(8, 231, 197) RGBA(8, 231, 197, 1) terminal.ansiGreen
#96DF71 RGB(150, 223, 113) RGBA(150, 223, 113, 1) terminal.ansiMagenta
#C74CEC RGB(199, 76, 236) RGBA(199, 76, 236, 1) terminal.ansiRed
#F82871 RGB(248, 40, 113) RGBA(248, 40, 113, 1) terminal.ansiWhite
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) terminal.ansiYellow
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) terminal.background
#1E2025 RGB(30, 32, 37) RGBA(30, 32, 37, 1) textLink.activeForeground
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) textLink.foreground
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) titleBar.activeBackground
#262933 RGB(38, 41, 51) RGBA(38, 41, 51, 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
#AFABB1 RGB(175, 171, 177) RGBA(175, 171, 177, 1) comment.block
#AFABB1 RGB(175, 171, 177) RGBA(175, 171, 177, 1) comment.block.documentation
#AFABB1 RGB(175, 171, 177) RGBA(175, 171, 177, 1) comment.line
#AFABB1 RGB(175, 171, 177) RGBA(175, 171, 177, 1) constant
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) constant.character
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) constant.character.escape
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) constant.numeric
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) constant.numeric.integer
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) constant.numeric.float
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) constant.numeric.hex
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) constant.numeric.octal
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) constant.other
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) constant.other.placeholder
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) entity
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.name
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.name.class
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.name.function
#08E7C5 RGB(8, 231, 197) RGBA(8, 231, 197, 1) entity.name.method
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.name.namespace
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.name.section
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.name.selector
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.name.tag
#08E7C5 RGB(8, 231, 197) RGBA(8, 231, 197, 1) entity.name.type
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.name.type.enum
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.name.type.interface
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.name.type.struct
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.other
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.other.attribute-name
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) entity.other.inherited-class
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) invalid
#F82871 RGB(248, 40, 113) RGBA(248, 40, 113, 1) invalid.deprecated
#F82871 RGB(248, 40, 113) RGBA(248, 40, 113, 1) invalid.illegal
#F82871 RGB(248, 40, 113) RGBA(248, 40, 113, 1) keyword
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) keyword.control
#08E7C5 RGB(8, 231, 197) RGBA(8, 231, 197, 1) keyword.control.flow
#08E7C5 RGB(8, 231, 197) RGBA(8, 231, 197, 1) keyword.operator
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) keyword.operator.new
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) keyword.operator.assignment
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) keyword.operator.arithmetic
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) keyword.operator.logical
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) keyword.other
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) markup.deleted
#F82871 RGB(248, 40, 113) RGBA(248, 40, 113, 1) markup.heading
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) markup.inline.raw
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) markup.inserted
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) markup.underline.link
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#08E7C5 RGB(8, 231, 197) RGBA(8, 231, 197, 1) meta.tag
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) punctuation.definition.bracket
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) punctuation.definition.comment
#AFABB1 RGB(175, 171, 177) RGBA(175, 171, 177, 1) punctuation.definition.string.begin
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) punctuation.definition.string.end
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) punctuation.separator
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) punctuation.separator.continuation
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) punctuation.terminator
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) storage
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) storage.modifier
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) storage.type
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#F29C14 RGB(242, 156, 20) RGBA(242, 156, 20, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) support.class
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) support.constant
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) support.function
#08E7C5 RGB(8, 231, 197) RGBA(8, 231, 197, 1) support.other
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) support.type
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) support.type.primitive
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) support.type.property-name
#10A793 RGB(16, 167, 147) RGBA(16, 167, 147, 1) variable
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) variable.function
#08E7C5 RGB(8, 231, 197) RGBA(8, 231, 197, 1) variable.language
#FEE56C RGB(254, 229, 108) RGBA(254, 229, 108, 1) variable.name
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) variable.other
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) variable.other.constant
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) variable.other.property
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) variable.other.readwrite
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1) variable.parameter
#F7F7F8 RGB(247, 247, 248) RGBA(247, 247, 248, 1)