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
fallout-pipboy-theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) activityBar.activeFocusBorder
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) activityBar.background
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) activityBar.foreground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) activityBarBadge.background
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) banner.background
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) button.background
#070F07 RGB(7, 15, 7) RGBA(7, 15, 7, 1) button.foreground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) button.hoverBackground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) button.secondaryBackground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) descriptionForeground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) dropdown.background
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) dropdown.border
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) dropdown.foreground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) dropdown.listBackground
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) editor.background
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) editor.foreground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) editorGroup.border
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) editorGroup.dropBackground
#19492F RGB(25, 73, 47) RGBA(25, 73, 47, 1) editorGroup.emptyBackground
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) editorGroupHeader.border
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) editorGroupHeader.noTabsBackground
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) editorGroupHeader.tabsBackground
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) focusBorder
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) foreground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) icon.foreground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) progressBar.background
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) scrollbarSlider.background
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) scrollbarSlider.hoverBackground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) sideBar.background
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) sideBar.border
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) sideBar.dropBackground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) sideBar.foreground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) sideBarSectionHeader.background
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) sideBarSectionHeader.foreground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) sideBarTitle.foreground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) statusBar.background
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) statusBar.foreground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) tab.activeBackground
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) tab.activeBorder
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) tab.border
#002700 RGB(0, 39, 0) RGBA(0, 39, 0, 1) tab.hoverBackground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) tab.inactiveBackground
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) tab.inactiveForeground
#2B7E52 RGB(43, 126, 82) RGBA(43, 126, 82, 1) tab.unfocusedActiveBackground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) titleBar.activeBackground
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) titleBar.activeForeground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) titleBar.border
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) toolbar.activeBackground
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) widget.shadow
#000700 RGB(0, 7, 0) RGBA(0, 7, 0, 1) window.activeBorder
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) window.inactiveBorder
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 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
#5C5C5C RGB(92, 92, 92) RGBA(92, 92, 92, 1) comment.block
#5C5C5C RGB(92, 92, 92) RGBA(92, 92, 92, 1) comment.block.documentation
#5C5C5C RGB(92, 92, 92) RGBA(92, 92, 92, 1) comment.line
#5C5C5C RGB(92, 92, 92) RGBA(92, 92, 92, 1) constant
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) constant.character
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) constant.character.escape
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) constant.numeric
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) constant.numeric.integer
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) constant.numeric.float
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) constant.numeric.hex
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) constant.numeric.octal
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) constant.other
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) constant.other.placeholder
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.class
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.function
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.method
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.namespace
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.section
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.selector
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.tag
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.type
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.type.enum
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.type.interface
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.name.type.struct
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.other
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.other.attribute-name
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) entity.other.inherited-class
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) invalid
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) invalid.deprecated
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) invalid.illegal
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) keyword
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) keyword.control
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) keyword.control.flow
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) keyword.operator
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) keyword.operator.new
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) keyword.operator.assignment
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) keyword.operator.arithmetic
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) keyword.operator.logical
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) keyword.other
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) markup.changed
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) markup.deleted
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) markup.heading
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) markup.inline.raw
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) markup.inserted
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) markup.italic
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) markup.raw
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) markup.underline
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) markup.underline.link
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) meta
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) meta.function-call
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) meta.tag
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) punctuation.definition.bracket
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) punctuation.definition.comment
#5C5C5C RGB(92, 92, 92) RGBA(92, 92, 92, 1) punctuation.definition.string.begin
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) punctuation.definition.string.end
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) punctuation.separator
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) punctuation.separator.continuation
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) punctuation.terminator
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) storage
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) storage.modifier
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) storage.type
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string.interpolated
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string.other
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string.quoted
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string.quoted.double
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string.quoted.other
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string.quoted.single
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string.quoted.triple
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string.regexp
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string.template
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) string.unquoted
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) support
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) support.class
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) support.constant
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) support.function
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) support.other
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) support.type
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) support.type.primitive
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) support.type.property-name
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) variable
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) variable.function
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) variable.language
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) variable.name
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) variable.other
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) variable.other.constant
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) variable.other.property
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) variable.other.readwrite
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1) variable.parameter
#4AEF98 RGB(74, 239, 152) RGBA(74, 239, 152, 1)