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
MAKRO
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#212733 RGB(33, 39, 51) RGBA(33, 39, 51, 1) editor.foreground
#5CCFE6 RGB(92, 207, 230) RGBA(92, 207, 230, 1) editor.inactiveSelectionBackground
#283543 RGB(40, 53, 67) RGBA(40, 53, 67, 1) editor.lineHighlightBackground
#1C222C RGB(28, 34, 44) RGBA(28, 34, 44, 1) editor.selectionBackground
#293847 RGB(41, 56, 71) RGBA(41, 56, 71, 1) editorCursor.foreground
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) editorIndentGuide.background
#363E4A RGB(54, 62, 74) RGBA(54, 62, 74, 1) editorWhitespace.foreground
#39424E RGB(57, 66, 78) RGBA(57, 66, 78, 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
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) comment.block
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) comment.block.documentation
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) comment.line
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) constant
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) constant.character
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.character.escape
#95E6CB RGB(149, 230, 203) RGBA(149, 230, 203, 1) constant.numeric
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.numeric.integer
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.numeric.float
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.numeric.hex
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.numeric.octal
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.other
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.other.placeholder
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) entity
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) entity.name
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) entity.name.tag
#73D0FF RGB(115, 208, 255) RGBA(115, 208, 255, 1) entity.name.type
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) entity.name.type.enum
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) entity.name.type.interface
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) entity.name.type.struct
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) entity.other
#FFD580 RGB(255, 213, 128) RGBA(255, 213, 128, 1) entity.other.attribute-name
#FFD580 RGB(255, 213, 128) RGBA(255, 213, 128, 1) entity.other.inherited-class
#73D0FF RGB(115, 208, 255) RGBA(115, 208, 255, 1) invalid
#FF3333 RGB(255, 51, 51) RGBA(255, 51, 51, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FF3333 RGB(255, 51, 51) RGBA(255, 51, 51, 1) keyword
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) keyword.control
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) keyword.control.flow
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) keyword.operator
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) keyword.operator.new
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) keyword.operator.assignment
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) keyword.operator.arithmetic
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) keyword.operator.logical
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) keyword.other
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) markup
#363E4A RGB(54, 62, 74) RGBA(54, 62, 74, 1) markup.bold
#F28779 RGB(242, 135, 121) RGBA(242, 135, 121, 1) markup.changed
#5CCFE6 RGB(92, 207, 230) RGBA(92, 207, 230, 1) markup.deleted
#F28779 RGB(242, 135, 121) RGBA(242, 135, 121, 1) markup.heading
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) markup.inserted
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) markup.italic
#F28779 RGB(242, 135, 121) RGBA(242, 135, 121, 1) markup.list
#95E6CB RGB(149, 230, 203) RGBA(149, 230, 203, 1) markup.list.numbered
#95E6CB RGB(149, 230, 203) RGBA(149, 230, 203, 1) markup.quote
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) markup.raw
#CCC9C2 RGB(204, 201, 194) RGBA(204, 201, 194, 1) markup.underline
#95E6CB RGB(149, 230, 203) RGBA(149, 230, 203, 1) markup.underline.link
#95E6CB RGB(149, 230, 203) RGBA(149, 230, 203, 1) meta
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) meta.tag
#5CCFE6 RGB(92, 207, 230) RGBA(92, 207, 230, 1) punctuation.definition.comment
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) punctuation.definition.string.begin
#5CCFE6 RGB(92, 207, 230) RGBA(92, 207, 230, 1) punctuation.definition.string.end
#5CCFE6 RGB(92, 207, 230) RGBA(92, 207, 230, 1) punctuation.separator
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) punctuation.separator.continuation
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) punctuation.terminator
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) storage
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) storage.modifier
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) storage.type
#FFA759 RGB(255, 167, 89) RGBA(255, 167, 89, 1) string
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) string.interpolated
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) string.other
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) string.quoted
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) string.quoted.double
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) string.quoted.other
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) string.quoted.single
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) string.quoted.triple
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) string.regexp
#95E6CB RGB(149, 230, 203) RGBA(149, 230, 203, 1) string.template
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) string.unquoted
#BAE67E RGB(186, 230, 126) RGBA(186, 230, 126, 1) support
#5CCFE6 RGB(92, 207, 230) RGBA(92, 207, 230, 1) support.class
#5CCFE6 RGB(92, 207, 230) RGBA(92, 207, 230, 1) support.constant
#F29E74 RGB(242, 158, 116) RGBA(242, 158, 116, 1) support.function
#F28779 RGB(242, 135, 121) RGBA(242, 135, 121, 1) support.type
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) support.type.primitive
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) support.type.property-name
#5CCFE6 RGB(92, 207, 230) RGBA(92, 207, 230, 1) variable
#C2C7CC RGB(194, 199, 204) RGBA(194, 199, 204, 1) variable.function
#FFD580 RGB(255, 213, 128) RGBA(255, 213, 128, 1) variable.language
#5CCFE6 RGB(92, 207, 230) RGBA(92, 207, 230, 1) variable.name
#C2C7CC RGB(194, 199, 204) RGBA(194, 199, 204, 1) variable.other
#C2C7CC RGB(194, 199, 204) RGBA(194, 199, 204, 1) variable.other.constant
#C2C7CC RGB(194, 199, 204) RGBA(194, 199, 204, 1) variable.other.property
#C2C7CC RGB(194, 199, 204) RGBA(194, 199, 204, 1) variable.other.readwrite
#FFD580 RGB(255, 213, 128) RGBA(255, 213, 128, 1) variable.parameter
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1)