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
PootieTangBubblegumCigar
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) editor.foreground
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) editorBracketHighlight.foreground1
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) editorBracketHighlight.foreground2
#B55186 RGB(181, 81, 134) RGBA(181, 81, 134, 1) editorBracketHighlight.foreground3
#9E4976 RGB(158, 73, 118) RGBA(158, 73, 118, 1) editorBracketHighlight.foreground4
#854165 RGB(133, 65, 101) RGBA(133, 65, 101, 1) editorBracketHighlight.foreground5
#6C3854 RGB(108, 56, 84) RGBA(108, 56, 84, 1) editorBracketHighlight.foreground6
#533043 RGB(83, 48, 67) RGBA(83, 48, 67, 1) editorBracketHighlight.unexpectedBracket.foreground
#89849F RGB(137, 132, 159) RGBA(137, 132, 159, 1) editorBracketPairGuide.background1
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) editorBracketPairGuide.background2
#B55186 RGB(181, 81, 134) RGBA(181, 81, 134, 1) editorBracketPairGuide.background3
#9E4976 RGB(158, 73, 118) RGBA(158, 73, 118, 1) editorBracketPairGuide.background4
#854165 RGB(133, 65, 101) RGBA(133, 65, 101, 1) editorBracketPairGuide.background5
#6C3854 RGB(108, 56, 84) RGBA(108, 56, 84, 1) editorBracketPairGuide.background6
#533043 RGB(83, 48, 67) RGBA(83, 48, 67, 1) editorCodeLens.foreground
#502F40 RGB(80, 47, 64) RGBA(80, 47, 64, 1) interactive.activeCodeBorder
#502F40 RGB(80, 47, 64) RGBA(80, 47, 64, 1) interactive.inactiveCodeBorder
#3E2934 RGB(62, 41, 52) RGBA(62, 41, 52, 1) notebook.cellBorderColor
#502F40 RGB(80, 47, 64) RGBA(80, 47, 64, 1) notebook.focusedCellBorder
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) notebook.inactiveFocusedCellBorder
#3E2934 RGB(62, 41, 52) RGBA(62, 41, 52, 1) peekView.border
#502F40 RGB(80, 47, 64) RGBA(80, 47, 64, 1) statusBar.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) statusBar.border
#502F40 RGB(80, 47, 64) RGBA(80, 47, 64, 1) statusBar.debuggingBackground
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) statusBar.debuggingBorder
#502F40 RGB(80, 47, 64) RGBA(80, 47, 64, 1) statusBar.debuggingForeground
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) statusBar.foreground
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) statusBar.noFolderBackground
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) statusBar.noFolderBorder
#502F40 RGB(80, 47, 64) RGBA(80, 47, 64, 1) statusBar.noFolderForeground
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) statusBarItem.errorBackground
#89849F RGB(137, 132, 159) RGBA(137, 132, 159, 1) statusBarItem.remoteBackground
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) statusBarItem.remoteForeground
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) statusBarItem.warningBackground
#89849F RGB(137, 132, 159) RGBA(137, 132, 159, 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
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) comment.block
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) comment.block.documentation
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) comment.line
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.character
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.character.escape
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.numeric
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.numeric.integer
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.numeric.float
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.numeric.hex
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.numeric.octal
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.other
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.other.placeholder
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.regexp
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) constant.rgb-value
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) entity
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) entity.name
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) entity.name.class
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) entity.name.function
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) entity.name.method
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) entity.name.namespace
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) entity.name.section
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) entity.name.selector
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) entity.name.tag
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) entity.name.type
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) entity.name.type.enum
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) entity.name.type.interface
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) entity.name.type.struct
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) entity.other
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) entity.other.attribute-name
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) entity.other.inherited-class
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) invalid
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) invalid.deprecated
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) invalid.illegal
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) keyword
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) keyword.control
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) keyword.control.flow
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) keyword.operator
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) keyword.operator.new
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) keyword.operator.assignment
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) keyword.operator.arithmetic
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) keyword.operator.logical
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) keyword.other
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) markup
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) markup.bold
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) markup.heading
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) markup.inline.raw
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) markup.italic
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) markup.raw
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) markup.underline
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) markup.underline.link
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) meta
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) meta.block
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) meta.cast
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) meta.class
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) meta.function
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) meta.function-call
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) meta.preprocessor
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) meta.return-type
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) meta.selector
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) meta.tag
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) meta.type.annotation
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) meta.type
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) punctuation.definition.bracket
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) punctuation.definition.comment
#89849F RGB(137, 132, 159) RGBA(137, 132, 159, 1) punctuation.definition.string.begin
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) punctuation.definition.string.end
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) punctuation.separator
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) punctuation.separator.continuation
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) punctuation.terminator
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) storage
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) storage.modifier
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) storage.type
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) string
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) string.interpolated
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) string.other
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) string.quoted
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) string.quoted.double
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) string.quoted.other
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) string.quoted.single
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) string.quoted.triple
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) string.regexp
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) string.template
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) string.unquoted
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) support
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) support.class
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) support.constant
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) support.function
#F080B5 RGB(240, 128, 181) RGBA(240, 128, 181, 1) support.other
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) support.type
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) support.type.primitive
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) support.type.property-name
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) support.variable
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) variable
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) variable.function
#D05A98 RGB(208, 90, 152) RGBA(208, 90, 152, 1) variable.language
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) variable.name
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) variable.other
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) variable.other.constant
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) variable.other.property
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) variable.other.readwrite
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1) variable.parameter
#C397A6 RGB(195, 151, 166) RGBA(195, 151, 166, 1)