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
Jay's Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#121212 RGB(18, 18, 18) RGBA(18, 18, 18, 1) editorBracketHighlight.foreground1
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorBracketHighlight.foreground2
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorBracketHighlight.foreground3
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorBracketHighlight.foreground4
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorBracketHighlight.foreground5
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorBracketHighlight.foreground6
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorBracketHighlight.unexpectedBracket.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 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
#979797 RGB(151, 151, 151) RGBA(151, 151, 151, 1) comment.block
#979797 RGB(151, 151, 151) RGBA(151, 151, 151, 1) comment.block.documentation
#979797 RGB(151, 151, 151) RGBA(151, 151, 151, 1) comment.line
#979797 RGB(151, 151, 151) RGBA(151, 151, 151, 1) constant
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.character
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.character.escape
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.numeric
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.numeric.integer
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.numeric.float
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.numeric.hex
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.numeric.octal
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.other
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.other.placeholder
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.regexp
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) constant.rgb-value
#FF2D73 RGB(255, 45, 115) RGBA(255, 45, 115, 1) entity
#FF24E7 RGB(255, 36, 231) RGBA(255, 36, 231, 1) entity.name
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) entity.name.tag
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) entity.other
#FF24E7 RGB(255, 36, 231) RGBA(255, 36, 231, 1) entity.other.attribute-name
#FFC308 RGB(255, 195, 8) RGBA(255, 195, 8, 1) keyword
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) keyword.control
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) keyword.control.flow
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) keyword.operator
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) keyword.operator.new
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) keyword.operator.assignment
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) keyword.operator.arithmetic
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) keyword.operator.logical
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) keyword.other
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) meta
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.block
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.cast
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.class
#2AC2FF RGB(42, 194, 255) RGBA(42, 194, 255, 1) meta.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.function-call
#2AC2FF RGB(42, 194, 255) RGBA(42, 194, 255, 1) meta.preprocessor
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.return-type
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.selector
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.type.annotation
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.type
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.bracket
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.comment
#979797 RGB(151, 151, 151) RGBA(151, 151, 151, 1) punctuation.definition.string.begin
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) punctuation.definition.string.end
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.separator.continuation
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.terminator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#FFC308 RGB(255, 195, 8) RGBA(255, 195, 8, 1) storage.modifier
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) storage.type
#FFC308 RGB(255, 195, 8) RGBA(255, 195, 8, 1) string
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) string.interpolated
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) string.other
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) string.quoted
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) string.quoted.double
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) string.quoted.other
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) string.quoted.single
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) string.quoted.triple
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) string.regexp
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) string.template
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) string.unquoted
#FF7F25 RGB(255, 127, 37) RGBA(255, 127, 37, 1) support
#979797 RGB(151, 151, 151) RGBA(151, 151, 151, 1) support.class
#50E340 RGB(80, 227, 64) RGBA(80, 227, 64, 1) support.constant
#979797 RGB(151, 151, 151) RGBA(151, 151, 151, 1) support.function
#2AC2FF RGB(42, 194, 255) RGBA(42, 194, 255, 1) support.type
#979797 RGB(151, 151, 151) RGBA(151, 151, 151, 1) support.type.property-name
#4DF9C2 RGB(77, 249, 194) RGBA(77, 249, 194, 1) support.variable
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.language
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.property
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 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)