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
Bigface
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#01963F RGB(1, 150, 63) RGBA(1, 150, 63, 1) editor.background
#252925 RGB(37, 41, 37) RGBA(37, 41, 37, 1) editor.foreground
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) sideBarTitle.foreground
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) statusBar.background
#01963F RGB(1, 150, 63) RGBA(1, 150, 63, 1) statusBar.foreground
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) tab.activeBackground
#01963F82 RGB(1, 150, 63) RGBA(1, 150, 63, 0.51)
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
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block.documentation
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.line
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) constant
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.character
#89BB82 RGB(137, 187, 130) RGBA(137, 187, 130, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#FC5D23 RGB(252, 93, 35) RGBA(252, 93, 35, 1) constant.numeric.integer
#FC5D23 RGB(252, 93, 35) RGBA(252, 93, 35, 1) constant.numeric.float
#FC5D23 RGB(252, 93, 35) RGBA(252, 93, 35, 1) constant.numeric.hex
#FC5D23 RGB(252, 93, 35) RGBA(252, 93, 35, 1) constant.numeric.octal
#FC5D23 RGB(252, 93, 35) RGBA(252, 93, 35, 1) constant.other
#FC5D23 RGB(252, 93, 35) RGBA(252, 93, 35, 1) entity
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) entity.name
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) entity.name.class
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) entity.name.function
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) entity.name.method
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) entity.name.namespace
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) entity.name.section
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) entity.name.selector
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) entity.name.tag
#0097FB RGB(0, 151, 251) RGBA(0, 151, 251, 1) entity.name.type
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) entity.name.type.enum
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) entity.name.type.interface
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) entity.name.type.struct
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) entity.other
#0097FB RGB(0, 151, 251) RGBA(0, 151, 251, 1) entity.other.attribute-name
#0097FB RGB(0, 151, 251) RGBA(0, 151, 251, 1) entity.other.inherited-class
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.other
#FC5D23 RGB(252, 93, 35) RGBA(252, 93, 35, 1) markup
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#0097FB RGB(0, 151, 251) RGBA(0, 151, 251, 1) markup.heading
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) meta
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) meta.function-call
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) meta.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) storage
#0097FB RGB(0, 151, 251) RGBA(0, 151, 251, 1) storage.modifier
#0097FB RGB(0, 151, 251) RGBA(0, 151, 251, 1) storage.type
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) string
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) string.interpolated
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) string.other
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) string.quoted
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) string.quoted.double
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) string.quoted.other
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) string.quoted.single
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) string.quoted.triple
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) string.unquoted
#E5E500 RGB(229, 229, 0) RGBA(229, 229, 0, 1) support
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) support.class
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) support.function
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) support.other
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) support.type
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) support.type.primitive
#0097FB RGB(0, 151, 251) RGBA(0, 151, 251, 1) support.type.property-name
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) variable
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) variable.function
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) variable.language
#0097FB RGB(0, 151, 251) RGBA(0, 151, 251, 1) variable.name
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) variable.other
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) variable.other.constant
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) variable.other.property
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) variable.other.readwrite
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) variable.parameter
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1)