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
Asexual (Dark)
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) activityBar.foreground
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) activityBarBadge.background
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) editor.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) editor.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) editorLineNumber.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) gitDecoration.modifiedResourceForeground
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) gitDecoration.untrackedResourceForeground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) list.errorForeground
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) list.warningForeground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) statusBar.debuggingBackground
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) statusBar.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.noFolderBackground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.noFolderForeground
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 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
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) comment.block
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) comment.block.documentation
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) comment.line
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) constant
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) constant.character
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1) constant.character.escape
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) constant.numeric
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1) constant.numeric.integer
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1) constant.numeric.float
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1) constant.numeric.hex
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1) constant.numeric.octal
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1) constant.other
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) constant.other.placeholder
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) entity
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.name
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.name.class
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.name.function
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) entity.name.method
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.name.namespace
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.name.section
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.name.selector
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.name.tag
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) entity.name.type
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.name.type.enum
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.name.type.interface
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.name.type.struct
#C4C0C0 RGB(196, 192, 192) RGBA(196, 192, 192, 1) entity.other
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1) entity.other.attribute-name
#84979E RGB(132, 151, 158) RGBA(132, 151, 158, 1) entity.other.inherited-class
#B435B4 RGB(180, 53, 180) RGBA(180, 53, 180, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) keyword.control
#84979E RGB(132, 151, 158) RGBA(132, 151, 158, 1) keyword.control.flow
#84979E RGB(132, 151, 158) RGBA(132, 151, 158, 1) keyword.operator
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) keyword.operator.new
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) keyword.operator.assignment
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) keyword.operator.arithmetic
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) keyword.operator.logical
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) keyword.other
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#84979E RGB(132, 151, 158) RGBA(132, 151, 158, 1) markup.heading
#B435B4 RGB(180, 53, 180) RGBA(180, 53, 180, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1) markup.italic
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.underline.link
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) meta.tag
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) punctuation.definition.bracket
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) punctuation.definition.comment
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) punctuation.definition.string.begin
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) punctuation.definition.string.end
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) punctuation.separator
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) punctuation.separator.continuation
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) punctuation.terminator
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) storage
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) storage.modifier
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) storage.type
#9F299F RGB(159, 41, 159) RGBA(159, 41, 159, 1) string
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) string.interpolated
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) string.other
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) string.quoted
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) string.quoted.double
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) string.quoted.other
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) string.quoted.single
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) string.quoted.triple
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) string.regexp
#9459BB RGB(148, 89, 187) RGBA(148, 89, 187, 1) string.template
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) string.unquoted
#BD7FE6 RGB(189, 127, 230) RGBA(189, 127, 230, 1) support
#EDE2F3 RGB(237, 226, 243) RGBA(237, 226, 243, 1) support.class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.constant
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1) support.function
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) support.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 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
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.function
#C2C1C1 RGB(194, 193, 193) RGBA(194, 193, 193, 1) variable.language
#84979E RGB(132, 151, 158) RGBA(132, 151, 158, 1) variable.name
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.property
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.readwrite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.parameter
#BC84F2 RGB(188, 132, 242) RGBA(188, 132, 242, 1)