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
Last Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#24323E RGB(36, 50, 62) RGBA(36, 50, 62, 1) editor.background
#24323E RGB(36, 50, 62) RGBA(36, 50, 62, 1) editor.foreground
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) editor.lineHighlightBackground
#344655 RGB(52, 70, 85) RGBA(52, 70, 85, 1) editor.selectionBackground
#344655 RGB(52, 70, 85) RGBA(52, 70, 85, 1) editorCursor.foreground
#02B3E4 RGB(2, 179, 228) RGBA(2, 179, 228, 1) editorGroupHeader.tabsBackground
#1C262F RGB(28, 38, 47) RGBA(28, 38, 47, 1) editorIndentGuide.activeBackground
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) editorIndentGuide.background
#434F58 RGB(67, 79, 88) RGBA(67, 79, 88, 1) editorSuggestWidget.background
#24323E RGB(36, 50, 62) RGBA(36, 50, 62, 1) editorWidget.background
#24323E RGB(36, 50, 62) RGBA(36, 50, 62, 1) list.activeSelectionBackground
#455C70 RGB(69, 92, 112) RGBA(69, 92, 112, 1) list.focusBackground
#455C70 RGB(69, 92, 112) RGBA(69, 92, 112, 1) list.hoverBackground
#34465500 RGB(52, 70, 85) RGBA(52, 70, 85, 0) list.inactiveFocusBackground
#455C70 RGB(69, 92, 112) RGBA(69, 92, 112, 1) list.inactiveSelectionBackground
#30414E RGB(48, 65, 78) RGBA(48, 65, 78, 1) scrollbar.shadow
#FFFFFF00 RGB(255, 255, 255) RGBA(255, 255, 255, 0) sideBar.background
#24323E RGB(36, 50, 62) RGBA(36, 50, 62, 1) tab.inactiveBackground
#1C262F RGB(28, 38, 47) RGBA(28, 38, 47, 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
#7D97AD RGB(125, 151, 173) RGBA(125, 151, 173, 1) comment.block
#7D97AD RGB(125, 151, 173) RGBA(125, 151, 173, 1) comment.block.documentation
#7D97AD RGB(125, 151, 173) RGBA(125, 151, 173, 1) comment.line
#7D97AD RGB(125, 151, 173) RGBA(125, 151, 173, 1) constant
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.character
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.character.escape
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.numeric
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.numeric.integer
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.numeric.float
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.numeric.hex
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.numeric.octal
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.other
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.other.placeholder
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.regexp
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) constant.rgb-value
#FF7D7D RGB(255, 125, 125) RGBA(255, 125, 125, 1) entity
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) entity.name
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) entity.name.class
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) entity.name.function
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) entity.name.tag
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) entity.name.type
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) entity.name.type.enum
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) entity.name.type.interface
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) entity.name.type.struct
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) entity.other
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) entity.other.attribute-name
#9FCA56 RGB(159, 202, 86) RGBA(159, 202, 86, 1) entity.other.inherited-class
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) invalid
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) invalid.deprecated
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) invalid.illegal
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) keyword
#E6CD69 RGB(230, 205, 105) RGBA(230, 205, 105, 1) keyword.control
#E6CD69 RGB(230, 205, 105) RGBA(230, 205, 105, 1) keyword.control.flow
#E6CD69 RGB(230, 205, 105) RGBA(230, 205, 105, 1) keyword.operator
#9FCA56 RGB(159, 202, 86) RGBA(159, 202, 86, 1) keyword.operator.new
#9FCA56 RGB(159, 202, 86) RGBA(159, 202, 86, 1) keyword.operator.assignment
#9FCA56 RGB(159, 202, 86) RGBA(159, 202, 86, 1) keyword.operator.arithmetic
#9FCA56 RGB(159, 202, 86) RGBA(159, 202, 86, 1) keyword.operator.logical
#9FCA56 RGB(159, 202, 86) RGBA(159, 202, 86, 1) keyword.other
#E6CD69 RGB(230, 205, 105) RGBA(230, 205, 105, 1) markup
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) markup.heading
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) markup.inline.raw
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) meta
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) meta.tag
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) storage
#E6CD69 RGB(230, 205, 105) RGBA(230, 205, 105, 1) storage.modifier
#E6CD69 RGB(230, 205, 105) RGBA(230, 205, 105, 1) storage.type
#E6CD69 RGB(230, 205, 105) RGBA(230, 205, 105, 1) string
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) string.interpolated
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) string.other
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) string.quoted
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) string.quoted.double
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) string.quoted.other
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) string.quoted.single
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) string.quoted.triple
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) string.regexp
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) string.template
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) string.unquoted
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1) support
#02CCBA RGB(2, 204, 186) RGBA(2, 204, 186, 1) support.class
#02CCBA RGB(2, 204, 186) RGBA(2, 204, 186, 1) support.constant
#02CCBA RGB(2, 204, 186) RGBA(2, 204, 186, 1) support.function
#02CCBA RGB(2, 204, 186) RGBA(2, 204, 186, 1) support.other
#02CCBA RGB(2, 204, 186) RGBA(2, 204, 186, 1) support.type
#02CCBA RGB(2, 204, 186) RGBA(2, 204, 186, 1) support.type.primitive
#02CCBA RGB(2, 204, 186) RGBA(2, 204, 186, 1) support.type.property-name
#02CCBA RGB(2, 204, 186) RGBA(2, 204, 186, 1) support.variable
#02CCBA RGB(2, 204, 186) RGBA(2, 204, 186, 1) variable
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) variable.function
#3193C6 RGB(49, 147, 198) RGBA(49, 147, 198, 1) variable.language
#E6CD69 RGB(230, 205, 105) RGBA(230, 205, 105, 1) variable.name
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) variable.other
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) variable.other.constant
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) variable.other.property
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) variable.other.readwrite
#DBE2E8 RGB(219, 226, 232) RGBA(219, 226, 232, 1) variable.parameter
#D38BFF RGB(211, 139, 255) RGBA(211, 139, 255, 1)