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
Flat UI
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#26323B RGB(38, 50, 59) RGBA(38, 50, 59, 1) editor.foreground
#92CEF1 RGB(146, 206, 241) RGBA(146, 206, 241, 1) editor.lineHighlightBackground
#2B3D49 RGB(43, 61, 73) RGBA(43, 61, 73, 1) editor.selectionBackground
#364958 RGB(54, 73, 88) RGBA(54, 73, 88, 1) editorCursor.foreground
#F3F2F4 RGB(243, 242, 244) RGBA(243, 242, 244, 1) editorWhitespace.foreground
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 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
#5A7690 RGB(90, 118, 144) RGBA(90, 118, 144, 1) comment.block
#5A7690 RGB(90, 118, 144) RGBA(90, 118, 144, 1) comment.block.documentation
#5A7690 RGB(90, 118, 144) RGBA(90, 118, 144, 1) comment.line
#5A7690 RGB(90, 118, 144) RGBA(90, 118, 144, 1) constant
#B094DE RGB(176, 148, 222) RGBA(176, 148, 222, 1) constant.character
#B094DE RGB(176, 148, 222) RGBA(176, 148, 222, 1) constant.character.escape
#B094DE RGB(176, 148, 222) RGBA(176, 148, 222, 1) constant.numeric
#B094DE RGB(176, 148, 222) RGBA(176, 148, 222, 1) constant.numeric.integer
#B094DE RGB(176, 148, 222) RGBA(176, 148, 222, 1) constant.numeric.float
#B094DE RGB(176, 148, 222) RGBA(176, 148, 222, 1) constant.numeric.hex
#B094DE RGB(176, 148, 222) RGBA(176, 148, 222, 1) constant.numeric.octal
#B094DE RGB(176, 148, 222) RGBA(176, 148, 222, 1) constant.other
#B094DE RGB(176, 148, 222) RGBA(176, 148, 222, 1) constant.other.placeholder
#B094DE RGB(176, 148, 222) RGBA(176, 148, 222, 1) entity
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) entity.name
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) entity.name.class
#74ED78 RGB(116, 237, 120) RGBA(116, 237, 120, 1) entity.name.function
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) entity.name.selector
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) entity.name.tag
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) entity.other
#74ED78 RGB(116, 237, 120) RGBA(116, 237, 120, 1) entity.other.attribute-name
#74ED78 RGB(116, 237, 120) RGBA(116, 237, 120, 1) entity.other.inherited-class
#74ED78 RGB(116, 237, 120) RGBA(116, 237, 120, 1) invalid
#8CC8EC RGB(140, 200, 236) RGBA(140, 200, 236, 1) invalid.deprecated
#8CC8EC RGB(140, 200, 236) RGBA(140, 200, 236, 1) invalid.illegal
#8CC8EC RGB(140, 200, 236) RGBA(140, 200, 236, 1) keyword
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) keyword.control
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) keyword.control.flow
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) keyword.operator
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) keyword.operator.new
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) keyword.operator.assignment
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) keyword.operator.arithmetic
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) keyword.operator.logical
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) keyword.other
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) markup
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) markup.bold
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) markup.changed
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) markup.deleted
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) markup.heading
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) markup.inline.raw
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) markup.inserted
#74ED78 RGB(116, 237, 120) RGBA(116, 237, 120, 1) markup.italic
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) markup.list
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) markup.list.numbered
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) markup.list.unnumbered
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) markup.quote
#74ED78 RGB(116, 237, 120) RGBA(116, 237, 120, 1) markup.underline
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) markup.underline.link
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) meta
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) punctuation.definition.comment
#5A7690 RGB(90, 118, 144) RGBA(90, 118, 144, 1) punctuation.definition.string.begin
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) punctuation.definition.string.end
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) storage
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) storage.modifier
#EA6442 RGB(234, 100, 66) RGBA(234, 100, 66, 1) storage.type
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) string
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) string.interpolated
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) string.other
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) string.quoted
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) string.quoted.double
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) string.quoted.other
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) string.quoted.single
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) string.quoted.triple
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) string.regexp
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) string.template
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) string.unquoted
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) support
#2980B9 RGB(41, 128, 185) RGBA(41, 128, 185, 1) support.class
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) support.constant
#74ED78 RGB(116, 237, 120) RGBA(116, 237, 120, 1) support.function
#74ED78 RGB(116, 237, 120) RGBA(116, 237, 120, 1) support.other
#2980B9 RGB(41, 128, 185) RGBA(41, 128, 185, 1) support.type
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) support.type.primitive
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) support.type.property-name
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) variable
#F4CF77 RGB(244, 207, 119) RGBA(244, 207, 119, 1) variable.language
#74ED78 RGB(116, 237, 120) RGBA(116, 237, 120, 1) variable.parameter
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1)