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
iJunior Neon
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) editor.background
#171717 RGB(23, 23, 23) RGBA(23, 23, 23, 1) editor.foreground
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) sideBarTitle.foreground
#EBEBEB RGB(235, 235, 235) RGBA(235, 235, 235, 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
#16B1FB RGB(22, 177, 251) RGBA(22, 177, 251, 1) comment.block
#16B1FB RGB(22, 177, 251) RGBA(22, 177, 251, 1) comment.block.documentation
#16B1FB RGB(22, 177, 251) RGBA(22, 177, 251, 1) comment.line
#16B1FB RGB(22, 177, 251) RGBA(22, 177, 251, 1) constant
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) constant.character
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) constant.character.escape
#16B1FB RGB(22, 177, 251) RGBA(22, 177, 251, 1) constant.numeric
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) constant.numeric.integer
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) constant.numeric.float
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) constant.numeric.hex
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) constant.numeric.octal
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) constant.other
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) constant.other.placeholder
#EBEBEB RGB(235, 235, 235) RGBA(235, 235, 235, 1) entity
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.name
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.name.class
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.name.function
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) entity.name.method
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.name.namespace
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.name.section
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.name.selector
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.name.tag
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) entity.name.type
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.name.type.enum
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.name.type.interface
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.name.type.struct
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) entity.other
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) entity.other.attribute-name
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) entity.other.inherited-class
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) invalid
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) invalid.deprecated
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) invalid.illegal
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) keyword
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) keyword.control
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) keyword.control.flow
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) keyword.operator
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) keyword.operator.new
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) keyword.operator.assignment
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) keyword.operator.arithmetic
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) keyword.operator.logical
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) keyword.other
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) markup.changed
#FF2491 RGB(255, 36, 145) RGBA(255, 36, 145, 1) markup.deleted
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) markup.heading
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) markup.inline.raw
#FF2491 RGB(255, 36, 145) RGBA(255, 36, 145, 1) markup.inserted
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) markup.italic
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) markup.underline.link
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) meta.tag
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) punctuation.definition.bracket
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) punctuation.definition.comment
#16B1FB RGB(22, 177, 251) RGBA(22, 177, 251, 1) punctuation.definition.string.begin
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) punctuation.definition.string.end
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) punctuation.separator
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) punctuation.separator.continuation
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) punctuation.terminator
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) storage
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) storage.modifier
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) storage.type
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) string
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) string.interpolated
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) string.other
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) string.quoted
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) string.quoted.double
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) string.quoted.other
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) string.quoted.single
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) string.quoted.triple
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) string.regexp
#16B1FB RGB(22, 177, 251) RGBA(22, 177, 251, 1) string.template
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) string.unquoted
#E1A126 RGB(225, 161, 38) RGBA(225, 161, 38, 1) support
#76B639 RGB(118, 182, 57) RGBA(118, 182, 57, 1) support.class
#97D01A RGB(151, 208, 26) RGBA(151, 208, 26, 1) support.constant
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) support.function
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) support.other
#97D01A RGB(151, 208, 26) RGBA(151, 208, 26, 1) support.type
#0FDCB6 RGB(15, 220, 182) RGBA(15, 220, 182, 1) support.type.primitive
#0FDCB6 RGB(15, 220, 182) RGBA(15, 220, 182, 1) support.type.property-name
#EBEBEB RGB(235, 235, 235) RGBA(235, 235, 235, 1) variable
#EBEBEB RGB(235, 235, 235) RGBA(235, 235, 235, 1) variable.function
#289CD5 RGB(40, 156, 213) RGBA(40, 156, 213, 1) variable.language
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1) variable.name
#EBEBEB RGB(235, 235, 235) RGBA(235, 235, 235, 1) variable.other
#FF2491 RGB(255, 36, 145) RGBA(255, 36, 145, 1) variable.other.constant
#FF2491 RGB(255, 36, 145) RGBA(255, 36, 145, 1) variable.other.property
#FF2491 RGB(255, 36, 145) RGBA(255, 36, 145, 1) variable.other.readwrite
#FF2491 RGB(255, 36, 145) RGBA(255, 36, 145, 1) variable.parameter
#D81765 RGB(216, 23, 101) RGBA(216, 23, 101, 1)