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
PootieTangAcid
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) editorBracketHighlight.foreground1
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) editorBracketHighlight.foreground2
#4DC4D9 RGB(77, 196, 217) RGBA(77, 196, 217, 1) editorBracketHighlight.foreground3
#42A6B8 RGB(66, 166, 184) RGBA(66, 166, 184, 1) editorBracketHighlight.foreground4
#358694 RGB(53, 134, 148) RGBA(53, 134, 148, 1) editorBracketHighlight.foreground5
#286670 RGB(40, 102, 112) RGBA(40, 102, 112, 1) editorBracketHighlight.foreground6
#1B454C RGB(27, 69, 76) RGBA(27, 69, 76, 1) editorBracketHighlight.unexpectedBracket.foreground
#956EE6 RGB(149, 110, 230) RGBA(149, 110, 230, 1) editorBracketPairGuide.background1
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) editorBracketPairGuide.background2
#4DC4D9 RGB(77, 196, 217) RGBA(77, 196, 217, 1) editorBracketPairGuide.background3
#42A6B8 RGB(66, 166, 184) RGBA(66, 166, 184, 1) editorBracketPairGuide.background4
#358694 RGB(53, 134, 148) RGBA(53, 134, 148, 1) editorBracketPairGuide.background5
#286670 RGB(40, 102, 112) RGBA(40, 102, 112, 1) editorBracketPairGuide.background6
#1B454C RGB(27, 69, 76) RGBA(27, 69, 76, 1) editorCodeLens.foreground
#194147 RGB(25, 65, 71) RGBA(25, 65, 71, 1) interactive.activeCodeBorder
#194147 RGB(25, 65, 71) RGBA(25, 65, 71, 1) interactive.inactiveCodeBorder
#102A2E RGB(16, 42, 46) RGBA(16, 42, 46, 1) notebook.cellBorderColor
#194147 RGB(25, 65, 71) RGBA(25, 65, 71, 1) notebook.focusedCellBorder
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) notebook.inactiveFocusedCellBorder
#102A2E RGB(16, 42, 46) RGBA(16, 42, 46, 1) peekView.border
#194147 RGB(25, 65, 71) RGBA(25, 65, 71, 1) statusBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.border
#194147 RGB(25, 65, 71) RGBA(25, 65, 71, 1) statusBar.debuggingBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.debuggingBorder
#194147 RGB(25, 65, 71) RGBA(25, 65, 71, 1) statusBar.debuggingForeground
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) statusBar.foreground
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) statusBar.noFolderBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.noFolderBorder
#194147 RGB(25, 65, 71) RGBA(25, 65, 71, 1) statusBar.noFolderForeground
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) statusBarItem.errorBackground
#956EE6 RGB(149, 110, 230) RGBA(149, 110, 230, 1) statusBarItem.remoteBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBarItem.remoteForeground
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) statusBarItem.warningBackground
#956EE6 RGB(149, 110, 230) RGBA(149, 110, 230, 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
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) comment.block
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) comment.block.documentation
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) comment.line
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.character
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.character.escape
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.numeric
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.numeric.integer
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.numeric.float
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.numeric.hex
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.numeric.octal
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.other
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.other.placeholder
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.regexp
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) constant.rgb-value
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) entity
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) entity.name
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) entity.name.class
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) entity.name.function
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) entity.name.method
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) entity.name.namespace
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) entity.name.section
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) entity.name.selector
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) entity.name.tag
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) entity.name.type
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) entity.name.type.enum
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) entity.name.type.interface
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) entity.name.type.struct
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) entity.other
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) entity.other.attribute-name
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) entity.other.inherited-class
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) invalid
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) invalid.deprecated
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) invalid.illegal
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) keyword
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) keyword.control
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) keyword.control.flow
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) keyword.operator
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) keyword.operator.new
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) keyword.operator.assignment
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) keyword.operator.arithmetic
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) keyword.operator.logical
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) keyword.other
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) markup
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) markup.bold
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) markup.heading
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) markup.inline.raw
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) markup.italic
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) markup.raw
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) markup.underline
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) markup.underline.link
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) meta
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) meta.block
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) meta.cast
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) meta.class
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) meta.function
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) meta.function-call
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) meta.preprocessor
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) meta.return-type
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) meta.selector
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) meta.tag
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) meta.type.annotation
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) meta.type
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) punctuation.definition.bracket
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) punctuation.definition.comment
#956EE6 RGB(149, 110, 230) RGBA(149, 110, 230, 1) punctuation.definition.string.begin
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) punctuation.definition.string.end
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) punctuation.separator
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) punctuation.separator.continuation
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) punctuation.terminator
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) storage
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) storage.modifier
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) storage.type
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) string
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) string.interpolated
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) string.other
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) string.quoted
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) string.quoted.double
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) string.quoted.other
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) string.quoted.single
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) string.quoted.triple
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) string.regexp
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) string.template
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) string.unquoted
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) support
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) support.class
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) support.constant
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) support.function
#FF7AD9 RGB(255, 122, 217) RGBA(255, 122, 217, 1) support.other
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) support.type
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) support.type.primitive
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) support.type.property-name
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) support.variable
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) variable
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) variable.function
#5BE7FF RGB(91, 231, 255) RGBA(91, 231, 255, 1) variable.language
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) variable.name
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) variable.other
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) variable.other.constant
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) variable.other.property
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) variable.other.readwrite
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1) variable.parameter
#55C23A RGB(85, 194, 58) RGBA(85, 194, 58, 1)