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
Nyx
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#1B1B1B RGB(27, 27, 27) RGBA(27, 27, 27, 1) activityBarBadge.background
#32C465 RGB(50, 196, 101) RGBA(50, 196, 101, 1) breadcrumb.foreground
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) button.background
#32C46C RGB(50, 196, 108) RGBA(50, 196, 108, 1) editor.background
#121212 RGB(18, 18, 18) RGBA(18, 18, 18, 1) editor.foreground
#A1B9B9 RGB(161, 185, 185) RGBA(161, 185, 185, 1) menubar.selectionForeground
#EA76CB RGB(234, 118, 203) RGBA(234, 118, 203, 1) sideBar.background
#121212 RGB(18, 18, 18) RGBA(18, 18, 18, 1) sideBar.border
#767976 RGB(118, 121, 118) RGBA(118, 121, 118, 1) sideBar.foreground
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) sideBarSectionHeader.background
#1B1B1B RGB(27, 27, 27) RGBA(27, 27, 27, 1) sideBarSectionHeader.foreground
#EA76CB RGB(234, 118, 203) RGBA(234, 118, 203, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#121212 RGB(18, 18, 18) RGBA(18, 18, 18, 1) textBlockQuote.background
#A117F2 RGB(161, 23, 242) RGBA(161, 23, 242, 1) textLink.foreground
#DD7878 RGB(221, 120, 120) RGBA(221, 120, 120, 1) welcomePage.background
#121212 RGB(18, 18, 18) RGBA(18, 18, 18, 1) welcomePage.progress.background
#121212 RGB(18, 18, 18) RGBA(18, 18, 18, 1) welcomePage.progress.foreground
#FDF101 RGB(253, 241, 1) RGBA(253, 241, 1, 1) welcomePage.tileBackground
#750080 RGB(117, 0, 128) RGBA(117, 0, 128, 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
#6C7A89 RGB(108, 122, 137) RGBA(108, 122, 137, 1) comment.block
#6C7A89 RGB(108, 122, 137) RGBA(108, 122, 137, 1) comment.block.documentation
#6C7A89 RGB(108, 122, 137) RGBA(108, 122, 137, 1) comment.line
#6C7A89 RGB(108, 122, 137) RGBA(108, 122, 137, 1) constant
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) constant.character
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) constant.character.escape
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) constant.numeric
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) constant.numeric.integer
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) constant.numeric.float
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) constant.numeric.hex
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) constant.numeric.octal
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) constant.other
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) constant.other.placeholder
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) entity
#BE00FE RGB(190, 0, 254) RGBA(190, 0, 254, 1) entity.name
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) entity.name.class
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) entity.name.function
#BE4379 RGB(190, 67, 121) RGBA(190, 67, 121, 1) entity.name.method
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) entity.name.namespace
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) entity.name.section
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) entity.name.selector
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) entity.name.tag
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) entity.name.type
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) entity.name.type.enum
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) entity.name.type.interface
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) entity.name.type.struct
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) entity.other
#BE00FE RGB(190, 0, 254) RGBA(190, 0, 254, 1) entity.other.attribute-name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.other.inherited-class
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) invalid
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) invalid.deprecated
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) invalid.illegal
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) keyword
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) keyword.control
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) keyword.control.flow
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) keyword.operator
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) keyword.operator.new
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) keyword.operator.assignment
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) keyword.operator.arithmetic
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) keyword.operator.logical
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) keyword.other
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) markup
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) markup.changed
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) markup.deleted
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) markup.heading
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) markup.inserted
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) meta
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) meta.function-call
#BE4379 RGB(190, 67, 121) RGBA(190, 67, 121, 1) meta.tag
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) punctuation.definition.bracket
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) punctuation.definition.comment
#6C7A89 RGB(108, 122, 137) RGBA(108, 122, 137, 1) punctuation.definition.string.begin
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) punctuation.definition.string.end
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) punctuation.separator
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) punctuation.separator.continuation
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) punctuation.terminator
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) storage
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) storage.modifier
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) storage.type
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) string
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) string.interpolated
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) string.other
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) string.quoted
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) string.quoted.double
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) string.quoted.other
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) string.quoted.single
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) string.quoted.triple
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) string.regexp
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) string.template
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) string.unquoted
#FF8D04 RGB(255, 141, 4) RGBA(255, 141, 4, 1) support
#7287FD RGB(114, 135, 253) RGBA(114, 135, 253, 1) support.class
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) support.constant
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) support.function
#BE4379 RGB(190, 67, 121) RGBA(190, 67, 121, 1) support.other
#04A5E5 RGB(4, 165, 229) RGBA(4, 165, 229, 1) support.type
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.primitive
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.property-name
#7287FD RGB(114, 135, 253) RGBA(114, 135, 253, 1) variable
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) variable.function
#BE4379 RGB(190, 67, 121) RGBA(190, 67, 121, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) variable.other
#81CDBF RGB(129, 205, 191) RGBA(129, 205, 191, 1) variable.other.constant
#81CDBF RGB(129, 205, 191) RGBA(129, 205, 191, 1) variable.other.property
#81CDBF RGB(129, 205, 191) RGBA(129, 205, 191, 1) variable.other.readwrite
#81CDBF RGB(129, 205, 191) RGBA(129, 205, 191, 1) variable.parameter
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1)