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
Xebia
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#120B25 RGB(18, 11, 37) RGBA(18, 11, 37, 1) activityBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) activityBarBadge.background
#FF007C RGB(255, 0, 124) RGBA(255, 0, 124, 1) activityBarBadge.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.background
#0A0A1A RGB(10, 10, 26) RGBA(10, 10, 26, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.lineHighlightBackground
#120B25 RGB(18, 11, 37) RGBA(18, 11, 37, 1) editor.selectionBackground
#7A3BFF55 RGB(122, 59, 255) RGBA(122, 59, 255, 0.333) editor.selectionHighlightBackground
#FF6FAE33 RGB(255, 111, 174) RGBA(255, 111, 174, 0.2) editorCursor.foreground
#FF007C RGB(255, 0, 124) RGBA(255, 0, 124, 1) editorLineNumber.foreground
#7A3BFF RGB(122, 59, 255) RGBA(122, 59, 255, 1) sideBar.background
#0A0A1A RGB(10, 10, 26) RGBA(10, 10, 26, 1) sideBar.foreground
#BFBFBF RGB(191, 191, 191) RGBA(191, 191, 191, 1) sideBarSectionHeader.background
#120B25 RGB(18, 11, 37) RGBA(18, 11, 37, 1) statusBar.background
#120B25 RGB(18, 11, 37) RGBA(18, 11, 37, 1) statusBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.activeBackground
#1D0C33 RGB(29, 12, 51) RGBA(29, 12, 51, 1) tab.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.inactiveBackground
#0A0A1A RGB(10, 10, 26) RGBA(10, 10, 26, 1) tab.inactiveForeground
#7A3BFF RGB(122, 59, 255) RGBA(122, 59, 255, 1) titleBar.activeBackground
#0A0A1A RGB(10, 10, 26) RGBA(10, 10, 26, 1) titleBar.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 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
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) comment.block
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) comment.block.documentation
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) comment.line
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) constant
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.character
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.character.escape
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.numeric
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.numeric.integer
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.numeric.float
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.numeric.hex
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.numeric.octal
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.other
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.other.placeholder
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) entity
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) entity.name
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) entity.name.class
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name.function
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) entity.name.tag
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) entity.name.type
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name.type.enum
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name.type.interface
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name.type.struct
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.other
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) entity.other.attribute-name
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) invalid
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) invalid.deprecated
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) invalid.illegal
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) keyword
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) keyword.control
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) keyword.control.flow
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) keyword.operator
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) keyword.operator.new
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) keyword.operator.assignment
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) keyword.operator.arithmetic
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) keyword.operator.logical
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) keyword.other
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) markup
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) markup.bold
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) markup.heading
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) markup.italic
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) meta
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) meta.function-call
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) punctuation.definition.comment
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) punctuation.separator
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) punctuation.separator.continuation
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) punctuation.terminator
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) storage
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) storage.modifier
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) storage.type
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) string
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) string.interpolated
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) string.other
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) string.quoted
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) string.quoted.double
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) string.quoted.other
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) string.quoted.single
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) string.quoted.triple
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) string.regexp
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) string.template
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) string.unquoted
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) support
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.class
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.constant
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.function
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) support.type
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.type.primitive
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.type.property-name
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) variable
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.function
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.language
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.name
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.other
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.other.constant
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.other.property
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.other.readwrite
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.parameter
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1)