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
Karuljonnai's Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#101010 RGB(16, 16, 16) RGBA(16, 16, 16, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 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
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block.documentation
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.line
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) constant
#FF0088 RGB(255, 0, 136) RGBA(255, 0, 136, 1) constant.character
#FF0088 RGB(255, 0, 136) RGBA(255, 0, 136, 1) constant.character.escape
#88FF88 RGB(136, 255, 136) RGBA(136, 255, 136, 1) constant.numeric
#4080F0 RGB(64, 128, 240) RGBA(64, 128, 240, 1) constant.numeric.integer
#4080F0 RGB(64, 128, 240) RGBA(64, 128, 240, 1) constant.numeric.float
#4080F0 RGB(64, 128, 240) RGBA(64, 128, 240, 1) constant.numeric.hex
#4080F0 RGB(64, 128, 240) RGBA(64, 128, 240, 1) constant.numeric.octal
#4080F0 RGB(64, 128, 240) RGBA(64, 128, 240, 1) constant.other
#FF0088 RGB(255, 0, 136) RGBA(255, 0, 136, 1) constant.other.placeholder
#FF0088 RGB(255, 0, 136) RGBA(255, 0, 136, 1) constant.regexp
#FF0088 RGB(255, 0, 136) RGBA(255, 0, 136, 1) constant.rgb-value
#FF0088 RGB(255, 0, 136) RGBA(255, 0, 136, 1) entity
#FF0088 RGB(255, 0, 136) RGBA(255, 0, 136, 1) entity.name
#FF0088 RGB(255, 0, 136) RGBA(255, 0, 136, 1) entity.name.function
#AA44FF RGB(170, 68, 255) RGBA(170, 68, 255, 1) entity.name.method
#AA44FF RGB(170, 68, 255) RGBA(170, 68, 255, 1) entity.name.section
#5040F0 RGB(80, 64, 240) RGBA(80, 64, 240, 1) entity.name.tag
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) entity.name.type
#80C0F0 RGB(128, 192, 240) RGBA(128, 192, 240, 1) entity.name.type.enum
#FFEE00 RGB(255, 238, 0) RGBA(255, 238, 0, 1) entity.name.type.interface
#80C0F0 RGB(128, 192, 240) RGBA(128, 192, 240, 1) entity.name.type.struct
#80C0F0 RGB(128, 192, 240) RGBA(128, 192, 240, 1) entity.other
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) entity.other.attribute-name
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) entity.other.inherited-class
#FFEE00 RGB(255, 238, 0) RGBA(255, 238, 0, 1) keyword
#1040F0 RGB(16, 64, 240) RGBA(16, 64, 240, 1) keyword.control
#1040F0 RGB(16, 64, 240) RGBA(16, 64, 240, 1) keyword.control.flow
#1040F0 RGB(16, 64, 240) RGBA(16, 64, 240, 1) keyword.operator
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) keyword.operator.new
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) keyword.operator.assignment
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) keyword.operator.arithmetic
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) keyword.operator.logical
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) keyword.other
#1040F0 RGB(16, 64, 240) RGBA(16, 64, 240, 1) meta
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) meta.function
#AA44FF RGB(170, 68, 255) RGBA(170, 68, 255, 1) meta.function-call
#AA44FF RGB(170, 68, 255) RGBA(170, 68, 255, 1) punctuation.separator
#800000 RGB(128, 0, 0) RGBA(128, 0, 0, 1) punctuation.separator.continuation
#800000 RGB(128, 0, 0) RGBA(128, 0, 0, 1) punctuation.terminator
#800000 RGB(128, 0, 0) RGBA(128, 0, 0, 1) storage
#5040F0 RGB(80, 64, 240) RGBA(80, 64, 240, 1) storage.modifier
#5040F0 RGB(80, 64, 240) RGBA(80, 64, 240, 1) storage.type
#5040F0 RGB(80, 64, 240) RGBA(80, 64, 240, 1) string
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.interpolated
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.other
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.quoted
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.quoted.double
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.quoted.other
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.quoted.single
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.quoted.triple
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.regexp
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.template
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) string.unquoted
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) support
#FF0088 RGB(255, 0, 136) RGBA(255, 0, 136, 1) support.class
#FFEE00 RGB(255, 238, 0) RGBA(255, 238, 0, 1) support.constant
#FFEE00 RGB(255, 238, 0) RGBA(255, 238, 0, 1) support.function
#AA44FF RGB(170, 68, 255) RGBA(170, 68, 255, 1) support.type
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) support.type.primitive
#80C0F0 RGB(128, 192, 240) RGBA(128, 192, 240, 1) support.type.property-name
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) support.variable
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) variable
#20F0E0 RGB(32, 240, 224) RGBA(32, 240, 224, 1) variable.function
#20F0E0 RGB(32, 240, 224) RGBA(32, 240, 224, 1) variable.language
#5040F0 RGB(80, 64, 240) RGBA(80, 64, 240, 1) variable.name
#20F0E0 RGB(32, 240, 224) RGBA(32, 240, 224, 1) variable.other
#20F0E0 RGB(32, 240, 224) RGBA(32, 240, 224, 1) variable.other.constant
#FF0088 RGB(255, 0, 136) RGBA(255, 0, 136, 1) variable.other.property
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) variable.other.readwrite
#20F0E0 RGB(32, 240, 224) RGBA(32, 240, 224, 1) variable.parameter
#20F0E0 RGB(32, 240, 224) RGBA(32, 240, 224, 1)