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
T3 Light
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#F5EDFA RGB(245, 237, 250) RGBA(245, 237, 250, 1) editor.foreground
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) editorGutter.background
#F2DEF5 RGB(242, 222, 245) RGBA(242, 222, 245, 1) editorLineNumber.foreground
#B55487 RGB(181, 84, 135) RGBA(181, 84, 135, 1) foreground
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 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
#DB74B7 RGB(219, 116, 183) RGBA(219, 116, 183, 1) comment.block
#DB74B7 RGB(219, 116, 183) RGBA(219, 116, 183, 1) comment.block.documentation
#DB74B7 RGB(219, 116, 183) RGBA(219, 116, 183, 1) comment.line
#DB74B7 RGB(219, 116, 183) RGBA(219, 116, 183, 1) constant
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) constant.character
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) constant.numeric
#D2626C RGB(210, 98, 108) RGBA(210, 98, 108, 1) constant.numeric.integer
#D2626C RGB(210, 98, 108) RGBA(210, 98, 108, 1) constant.numeric.float
#D2626C RGB(210, 98, 108) RGBA(210, 98, 108, 1) constant.numeric.hex
#D2626C RGB(210, 98, 108) RGBA(210, 98, 108, 1) constant.numeric.octal
#D2626C RGB(210, 98, 108) RGBA(210, 98, 108, 1) constant.other
#D2626C RGB(210, 98, 108) RGBA(210, 98, 108, 1) constant.other.placeholder
#D2626C RGB(210, 98, 108) RGBA(210, 98, 108, 1) entity
#D2626C RGB(210, 98, 108) RGBA(210, 98, 108, 1) entity.name
#D2626C RGB(210, 98, 108) RGBA(210, 98, 108, 1) entity.name.function
#6C4CBC RGB(108, 76, 188) RGBA(108, 76, 188, 1) entity.name.namespace
#5579BC RGB(85, 121, 188) RGBA(85, 121, 188, 1) entity.name.tag
#B74CBB RGB(183, 76, 187) RGBA(183, 76, 187, 1) entity.name.type
#5579BC RGB(85, 121, 188) RGBA(85, 121, 188, 1) entity.name.type.enum
#5579BC RGB(85, 121, 188) RGBA(85, 121, 188, 1) entity.name.type.interface
#5579BC RGB(85, 121, 188) RGBA(85, 121, 188, 1) entity.name.type.struct
#5579BC RGB(85, 121, 188) RGBA(85, 121, 188, 1) entity.other
#6C4CBC RGB(108, 76, 188) RGBA(108, 76, 188, 1) entity.other.attribute-name
#6C4CBC RGB(108, 76, 188) RGBA(108, 76, 188, 1) entity.other.inherited-class
#5579BC RGB(85, 121, 188) RGBA(85, 121, 188, 1) keyword
#C51478 RGB(197, 20, 120) RGBA(197, 20, 120, 1) keyword.control
#C51478 RGB(197, 20, 120) RGBA(197, 20, 120, 1) keyword.control.flow
#C51478 RGB(197, 20, 120) RGBA(197, 20, 120, 1) keyword.operator
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) keyword.operator.new
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) keyword.operator.assignment
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) keyword.operator.arithmetic
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) keyword.operator.logical
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) keyword.other
#C51478 RGB(197, 20, 120) RGBA(197, 20, 120, 1) markup
#6C4CBC RGB(108, 76, 188) RGBA(108, 76, 188, 1) markup.heading
#C51478 RGB(197, 20, 120) RGBA(197, 20, 120, 1) markup.inline.raw
#6C4CBC RGB(108, 76, 188) RGBA(108, 76, 188, 1) markup.quote
#6C4CBC RGB(108, 76, 188) RGBA(108, 76, 188, 1) meta
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) meta.function-call
#6C4CBC RGB(108, 76, 188) RGBA(108, 76, 188, 1) meta.preprocessor
#D2626C RGB(210, 98, 108) RGBA(210, 98, 108, 1) meta.tag
#6C4CBC RGB(108, 76, 188) RGBA(108, 76, 188, 1) punctuation.definition.comment
#DB74B7 RGB(219, 116, 183) RGBA(219, 116, 183, 1) punctuation.separator
#C51478 RGB(197, 20, 120) RGBA(197, 20, 120, 1) storage
#5579BC RGB(85, 121, 188) RGBA(85, 121, 188, 1) storage.modifier
#C51478 RGB(197, 20, 120) RGBA(197, 20, 120, 1) storage.type
#C51478 RGB(197, 20, 120) RGBA(197, 20, 120, 1) string
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) string.interpolated
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) string.other
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) string.quoted
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) string.quoted.double
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) string.quoted.other
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) string.quoted.single
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) string.quoted.triple
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) string.regexp
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) string.template
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) string.unquoted
#487E70 RGB(72, 126, 112) RGBA(72, 126, 112, 1) support
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) support.class
#5579BC RGB(85, 121, 188) RGBA(85, 121, 188, 1) support.constant
#B74CBB RGB(183, 76, 187) RGBA(183, 76, 187, 1) support.function
#6C4CBC RGB(108, 76, 188) RGBA(108, 76, 188, 1) support.type
#5579BC RGB(85, 121, 188) RGBA(85, 121, 188, 1) support.type.primitive
#5579BC RGB(85, 121, 188) RGBA(85, 121, 188, 1) support.type.property-name
#673C8B RGB(103, 60, 139) RGBA(103, 60, 139, 1) variable
#563271 RGB(86, 50, 113) RGBA(86, 50, 113, 1) variable.function
#563271 RGB(86, 50, 113) RGBA(86, 50, 113, 1) variable.language
#563271 RGB(86, 50, 113) RGBA(86, 50, 113, 1) variable.name
#563271 RGB(86, 50, 113) RGBA(86, 50, 113, 1) variable.other
#563271 RGB(86, 50, 113) RGBA(86, 50, 113, 1) variable.other.constant
#563271 RGB(86, 50, 113) RGBA(86, 50, 113, 1) variable.other.property
#563271 RGB(86, 50, 113) RGBA(86, 50, 113, 1) variable.other.readwrite
#563271 RGB(86, 50, 113) RGBA(86, 50, 113, 1) variable.parameter
#563271 RGB(86, 50, 113) RGBA(86, 50, 113, 1)