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
Non-binary (Light)
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) activityBar.foreground
#F1E609 RGB(241, 230, 9) RGBA(241, 230, 9, 1) activityBarBadge.background
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) editor.background
#F3F1F1 RGB(243, 241, 241) RGBA(243, 241, 241, 1) editor.foreground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) editorLineNumber.foreground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) gitDecoration.modifiedResourceForeground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) gitDecoration.untrackedResourceForeground
#FFF432 RGB(255, 244, 50) RGBA(255, 244, 50, 1) list.errorForeground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) list.warningForeground
#FFF432 RGB(255, 244, 50) RGBA(255, 244, 50, 1) sideBarTitle.foreground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) statusBar.background
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) statusBar.debuggingBackground
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) statusBar.foreground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) statusBar.noFolderBackground
#FFF432 RGB(255, 244, 50) RGBA(255, 244, 50, 1) statusBar.noFolderForeground
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 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
#A7A7A7 RGB(167, 167, 167) RGBA(167, 167, 167, 1) comment.block
#A7A7A7 RGB(167, 167, 167) RGBA(167, 167, 167, 1) comment.block.documentation
#A7A7A7 RGB(167, 167, 167) RGBA(167, 167, 167, 1) comment.line
#A7A7A7 RGB(167, 167, 167) RGBA(167, 167, 167, 1) constant
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) constant.character
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) constant.character.escape
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) constant.numeric
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) constant.numeric.integer
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) constant.numeric.float
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) constant.numeric.hex
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) constant.numeric.octal
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) constant.other
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) constant.other.placeholder
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) entity
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name.class
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name.function
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) entity.name.method
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name.namespace
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name.section
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name.selector
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name.tag
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name.type
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name.type.enum
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name.type.interface
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.name.type.struct
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.other
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) entity.other.attribute-name
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) entity.other.inherited-class
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) invalid
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) invalid.deprecated
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) invalid.illegal
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.control
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) keyword.control.flow
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) keyword.operator
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.operator.new
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.operator.assignment
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.operator.arithmetic
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.operator.logical
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) keyword.other
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) markup
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) markup.bold
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) markup.changed
#AB7FDD RGB(171, 127, 221) RGBA(171, 127, 221, 1) markup.deleted
#B898DD RGB(184, 152, 221) RGBA(184, 152, 221, 1) markup.heading
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) markup.inline.raw
#B898DD RGB(184, 152, 221) RGBA(184, 152, 221, 1) markup.inserted
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) markup.italic
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) markup.raw
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) markup.underline
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) markup.underline.link
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) meta
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) meta.function-call
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) meta.tag
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.definition.bracket
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.definition.comment
#A7A7A7 RGB(167, 167, 167) RGBA(167, 167, 167, 1) punctuation.definition.string.begin
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.definition.string.end
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.separator
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.separator.continuation
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) punctuation.terminator
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) storage
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) storage.modifier
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) storage.type
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) string
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) string.interpolated
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) string.other
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) string.quoted
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) string.quoted.double
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) string.quoted.other
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) string.quoted.single
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) string.quoted.triple
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) string.regexp
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) string.template
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) string.unquoted
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) support
#904FC5 RGB(144, 79, 197) RGBA(144, 79, 197, 1) support.class
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) support.constant
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) support.function
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) support.other
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) support.type
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) support.type.primitive
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) support.type.property-name
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) variable
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) variable.function
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1) variable.language
#B898DD RGB(184, 152, 221) RGBA(184, 152, 221, 1) variable.name
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) variable.other
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) variable.other.constant
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) variable.other.property
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) variable.other.readwrite
#C2BB27 RGB(194, 187, 39) RGBA(194, 187, 39, 1) variable.parameter
#9A59CF RGB(154, 89, 207) RGBA(154, 89, 207, 1)