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
Ange V2
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBorder
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) activityBar.background
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) activityBarBadge.background
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) activityBarBadge.foreground
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) badge.background
#444444 RGB(68, 68, 68) RGBA(68, 68, 68, 1) badge.foreground
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) button.background
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) button.foreground
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) diffEditor.insertedTextBackground
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) diffEditorGutter.insertedLineBackground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) editor.background
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) editor.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) editor.selectionBackground
#444444 RGB(68, 68, 68) RGBA(68, 68, 68, 1) editor.stackFrameHighlightBackground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) editorBracketHighlight.foreground1
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) editorBracketHighlight.foreground2
#FC9EFF RGB(252, 158, 255) RGBA(252, 158, 255, 1) editorBracketHighlight.foreground3
#88BFFF RGB(136, 191, 255) RGBA(136, 191, 255, 1) editorBracketHighlight.foreground4
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) editorBracketHighlight.foreground5
#FC9EFF RGB(252, 158, 255) RGBA(252, 158, 255, 1) editorBracketHighlight.foreground6
#88BFFF RGB(136, 191, 255) RGBA(136, 191, 255, 1) editorBracketHighlight.unexpectedBracket.foreground
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) editorGutter.addedBackground
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) editorGutter.modifiedBackground
#88BFFF RGB(136, 191, 255) RGBA(136, 191, 255, 1) editorOverviewRuler.addedForeground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) focusBorder
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) gitDecoration.modifiedResourceForeground
#747474 RGB(116, 116, 116) RGBA(116, 116, 116, 1) list.activeSelectionBackground
#444444 RGB(68, 68, 68) RGBA(68, 68, 68, 1) menu.selectionForeground
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) peekView.border
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) peekViewEditor.matchHighlightBackground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) peekViewResult.background
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) peekViewResult.lineForeground
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) peekViewResult.selectionBackground
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) peekViewTitle.background
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) sideBarSectionHeader.background
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) statusBar.border
#444444 RGB(68, 68, 68) RGBA(68, 68, 68, 1) statusBar.debuggingBackground
#FDC22C RGB(253, 194, 44) RGBA(253, 194, 44, 1) statusBar.debuggingForeground
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) tab.activeForeground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) tab.inactiveForeground
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 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
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.block
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.block.documentation
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.line
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) constant
#FDA725 RGB(253, 167, 37) RGBA(253, 167, 37, 1) constant.numeric
#FDA725 RGB(253, 167, 37) RGBA(253, 167, 37, 1) entity
#55EBFF RGB(85, 235, 255) RGBA(85, 235, 255, 1) entity.name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.function
#88BFFF RGB(136, 191, 255) RGBA(136, 191, 255, 1) entity.name.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.other
#55EBFF RGB(85, 235, 255) RGBA(85, 235, 255, 1) entity.other.attribute-name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#00FF0D RGB(0, 255, 13) RGBA(0, 255, 13, 1) keyword.control
#00FF0D RGB(0, 255, 13) RGBA(0, 255, 13, 1) keyword.control.flow
#00FF0D RGB(0, 255, 13) RGBA(0, 255, 13, 1) keyword.other
#FB88FF RGB(251, 136, 255) RGBA(251, 136, 255, 1) meta
#FDA725 RGB(253, 167, 37) RGBA(253, 167, 37, 1) meta.type.annotation
#00FF0D RGB(0, 255, 13) RGBA(0, 255, 13, 1) meta.type
#00FF0D RGB(0, 255, 13) RGBA(0, 255, 13, 1) punctuation.definition.comment
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) punctuation.definition.string.begin
#FDA725 RGB(253, 167, 37) RGBA(253, 167, 37, 1) punctuation.definition.string.end
#FDA725 RGB(253, 167, 37) RGBA(253, 167, 37, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.terminator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#00FF0D RGB(0, 255, 13) RGBA(0, 255, 13, 1) storage.modifier
#A0F1FC RGB(160, 241, 252) RGBA(160, 241, 252, 1) storage.type
#00FF0D RGB(0, 255, 13) RGBA(0, 255, 13, 1) string
#FDA725 RGB(253, 167, 37) RGBA(253, 167, 37, 1) string.quoted
#FDA725 RGB(253, 167, 37) RGBA(253, 167, 37, 1) string.quoted.double
#FDA725 RGB(253, 167, 37) RGBA(253, 167, 37, 1) string.quoted.single
#FDA725 RGB(253, 167, 37) RGBA(253, 167, 37, 1) support
#FB88FF RGB(251, 136, 255) RGBA(251, 136, 255, 1) support.class
#FDB8FF RGB(253, 184, 255) RGBA(253, 184, 255, 1) support.constant
#55EBFF RGB(85, 235, 255) RGBA(85, 235, 255, 1) support.function
#FDB8FF RGB(253, 184, 255) RGBA(253, 184, 255, 1) support.other
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) support.type
#FB88FF RGB(251, 136, 255) RGBA(251, 136, 255, 1) support.type.property-name
#FB88FF RGB(251, 136, 255) RGBA(251, 136, 255, 1) support.variable
#55EBFF RGB(85, 235, 255) RGBA(85, 235, 255, 1) variable
#FB88FF RGB(251, 136, 255) RGBA(251, 136, 255, 1) variable.language
#55EBFF RGB(85, 235, 255) RGBA(85, 235, 255, 1) variable.other
#FB88FF RGB(251, 136, 255) RGBA(251, 136, 255, 1) variable.other.constant
#FB88FF RGB(251, 136, 255) RGBA(251, 136, 255, 1) variable.other.property
#55EBFF RGB(85, 235, 255) RGBA(85, 235, 255, 1) variable.other.readwrite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.parameter
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1)