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
Merica
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#15161B RGB(21, 22, 27) RGBA(21, 22, 27, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.inactiveSelectionBackground
#3B3B3B RGB(59, 59, 59) RGBA(59, 59, 59, 1) editor.lineHighlightBackground
#21222C RGB(33, 34, 44) RGBA(33, 34, 44, 1) editor.selectionBackground
#7259B1 RGB(114, 89, 177) RGBA(114, 89, 177, 1) editorCursor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorWhitespace.foreground
#313024 RGB(49, 48, 36) RGBA(49, 48, 36, 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
#495C70 RGB(73, 92, 112) RGBA(73, 92, 112, 1) comment.block
#495C70 RGB(73, 92, 112) RGBA(73, 92, 112, 1) comment.block.documentation
#495C70 RGB(73, 92, 112) RGBA(73, 92, 112, 1) comment.line
#495C70 RGB(73, 92, 112) RGBA(73, 92, 112, 1) constant
#FF6565 RGB(255, 101, 101) RGBA(255, 101, 101, 1) constant.character
#CF9EFF RGB(207, 158, 255) RGBA(207, 158, 255, 1) constant.character.escape
#CF9EFF RGB(207, 158, 255) RGBA(207, 158, 255, 1) constant.numeric
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) constant.numeric.integer
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) constant.numeric.float
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) constant.numeric.hex
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) constant.numeric.octal
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) constant.other
#CF9EFF RGB(207, 158, 255) RGBA(207, 158, 255, 1) constant.other.placeholder
#CF9EFF RGB(207, 158, 255) RGBA(207, 158, 255, 1) entity
#36A7FB RGB(54, 167, 251) RGBA(54, 167, 251, 1) entity.name
#FF6565 RGB(255, 101, 101) RGBA(255, 101, 101, 1) entity.name.class
#22F4E5 RGB(34, 244, 229) RGBA(34, 244, 229, 1) entity.name.function
#36A7FB RGB(54, 167, 251) RGBA(54, 167, 251, 1) entity.name.section
#FF4FBA RGB(255, 79, 186) RGBA(255, 79, 186, 1) entity.name.tag
#FF6565 RGB(255, 101, 101) RGBA(255, 101, 101, 1) entity.name.type
#FFA6A6 RGB(255, 166, 166) RGBA(255, 166, 166, 1) entity.name.type.enum
#FFA6A6 RGB(255, 166, 166) RGBA(255, 166, 166, 1) entity.name.type.interface
#FFA6A6 RGB(255, 166, 166) RGBA(255, 166, 166, 1) entity.name.type.struct
#FFA6A6 RGB(255, 166, 166) RGBA(255, 166, 166, 1) entity.other
#36A7FB RGB(54, 167, 251) RGBA(54, 167, 251, 1) entity.other.attribute-name
#36A7FB RGB(54, 167, 251) RGBA(54, 167, 251, 1) entity.other.inherited-class
#FFA6A6 RGB(255, 166, 166) RGBA(255, 166, 166, 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
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) keyword.control
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) keyword.control.flow
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) keyword.operator
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) keyword.operator.new
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) keyword.operator.assignment
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) keyword.operator.arithmetic
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) keyword.operator.logical
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) keyword.other
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) markup
#B5BCDA RGB(181, 188, 218) RGBA(181, 188, 218, 1) markup.bold
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.changed
#FFFF29 RGB(255, 255, 41) RGBA(255, 255, 41, 1) markup.deleted
#FF4FBA RGB(255, 79, 186) RGBA(255, 79, 186, 1) markup.heading
#FF4FBA RGB(255, 79, 186) RGBA(255, 79, 186, 1) markup.inserted
#22F4E5 RGB(34, 244, 229) RGBA(34, 244, 229, 1) markup.raw
#B5BCDA RGB(181, 188, 218) RGBA(181, 188, 218, 1) meta
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.function-call
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.comment
#495C70 RGB(73, 92, 112) RGBA(73, 92, 112, 1) punctuation.separator
#B5BCDA RGB(181, 188, 218) RGBA(181, 188, 218, 1) punctuation.terminator
#B5BCDA RGB(181, 188, 218) RGBA(181, 188, 218, 1) storage
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) storage.modifier
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) storage.type
#D24242 RGB(210, 66, 66) RGBA(210, 66, 66, 1) string
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) string.interpolated
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) string.other
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) string.quoted
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) string.quoted.double
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) string.quoted.other
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) string.quoted.single
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) string.quoted.triple
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) string.regexp
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) string.template
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) string.unquoted
#DDD9B8 RGB(221, 217, 184) RGBA(221, 217, 184, 1) support
#36A7FB RGB(54, 167, 251) RGBA(54, 167, 251, 1) support.class
#FF4FBA RGB(255, 79, 186) RGBA(255, 79, 186, 1) support.constant
#FF4FBA RGB(255, 79, 186) RGBA(255, 79, 186, 1) support.function
#36A7FB RGB(54, 167, 251) RGBA(54, 167, 251, 1) support.type
#FF6565 RGB(255, 101, 101) RGBA(255, 101, 101, 1) support.type.primitive
#FF6565 RGB(255, 101, 101) RGBA(255, 101, 101, 1) support.type.property-name
#B5BCDA RGB(181, 188, 218) RGBA(181, 188, 218, 1) support.variable
#CF9EFF RGB(207, 158, 255) RGBA(207, 158, 255, 1) variable
#9DE3FF RGB(157, 227, 255) RGBA(157, 227, 255, 1) variable.function
#22F4E5 RGB(34, 244, 229) RGBA(34, 244, 229, 1) variable.other
#D3D793 RGB(211, 215, 147) RGBA(211, 215, 147, 1) variable.parameter
#9DE3FF RGB(157, 227, 255) RGBA(157, 227, 255, 1)