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
SoftC#Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#0A96E7 RGB(10, 150, 231) RGBA(10, 150, 231, 1) editor.background
#1A1C1D RGB(26, 28, 29) RGBA(26, 28, 29, 1) editor.foreground
#CCCCCCF3 RGB(204, 204, 204) RGBA(204, 204, 204, 0.953) editor.selectionBackground
#8A8A8A7C RGB(138, 138, 138) RGBA(138, 138, 138, 0.486) editor.selectionForeground
#2600FFD7 RGB(38, 0, 255) RGBA(38, 0, 255, 0.843) editor.selectionHighlightBackground
#FCFCFC25 RGB(252, 252, 252) RGBA(252, 252, 252, 0.145) editor.selectionHighlightBorder
#FCFCFC36 RGB(252, 252, 252) RGBA(252, 252, 252, 0.212) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 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
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) comment.block
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) comment.block.documentation
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) comment.line
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) constant
#35688A RGB(53, 104, 138) RGBA(53, 104, 138, 1) constant.character
#C9C9C9 RGB(201, 201, 201) RGBA(201, 201, 201, 1) constant.character.escape
#35688A RGB(53, 104, 138) RGBA(53, 104, 138, 1) constant.numeric
#C9C9C9 RGB(201, 201, 201) RGBA(201, 201, 201, 1) constant.numeric.integer
#C9C9C9 RGB(201, 201, 201) RGBA(201, 201, 201, 1) constant.numeric.float
#C9C9C9 RGB(201, 201, 201) RGBA(201, 201, 201, 1) constant.numeric.hex
#C9C9C9 RGB(201, 201, 201) RGBA(201, 201, 201, 1) constant.numeric.octal
#C9C9C9 RGB(201, 201, 201) RGBA(201, 201, 201, 1) constant.other
#B4792B RGB(180, 121, 43) RGBA(180, 121, 43, 1) constant.other.placeholder
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) entity.name
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity.name.class
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity.name.function
#C2A966 RGB(194, 169, 102) RGBA(194, 169, 102, 1) entity.name.method
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity.name.namespace
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity.name.section
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity.name.selector
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity.name.tag
#CE6666 RGB(206, 102, 102) RGBA(206, 102, 102, 1) entity.name.type
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity.name.type.enum
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity.name.type.interface
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity.name.type.struct
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#B4792B RGB(180, 121, 43) RGBA(180, 121, 43, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#56AC53 RGB(86, 172, 83) RGBA(86, 172, 83, 1) keyword.operator
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) keyword.operator.new
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) keyword.operator.assignment
#CE6666 RGB(206, 102, 102) RGBA(206, 102, 102, 1) keyword.operator.arithmetic
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) keyword.operator.logical
#CE6666 RGB(206, 102, 102) RGBA(206, 102, 102, 1) keyword.other
#CE6666 RGB(206, 102, 102) RGBA(206, 102, 102, 1) markup
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) meta
#C2A966 RGB(194, 169, 102) RGBA(194, 169, 102, 1) meta.function-call
#C2A966 RGB(194, 169, 102) RGBA(194, 169, 102, 1) meta.preprocessor
#B85FCE RGB(184, 95, 206) RGBA(184, 95, 206, 1) meta.tag
#CE6666 RGB(206, 102, 102) RGBA(206, 102, 102, 1) punctuation.definition.bracket
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) punctuation.definition.comment
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) punctuation.definition.string.begin
#B4792B RGB(180, 121, 43) RGBA(180, 121, 43, 1) punctuation.definition.string.end
#B4792B RGB(180, 121, 43) RGBA(180, 121, 43, 1) punctuation.separator
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) punctuation.separator.continuation
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) punctuation.terminator
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) storage
#CE6666 RGB(206, 102, 102) RGBA(206, 102, 102, 1) storage.modifier
#CE6666 RGB(206, 102, 102) RGBA(206, 102, 102, 1) storage.type
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) string
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) string.other
#CE6666 RGB(206, 102, 102) RGBA(206, 102, 102, 1) string.quoted
#B4792B RGB(180, 121, 43) RGBA(180, 121, 43, 1) string.quoted.double
#B4792B RGB(180, 121, 43) RGBA(180, 121, 43, 1) string.quoted.single
#B4792B RGB(180, 121, 43) RGBA(180, 121, 43, 1) string.regexp
#D19292 RGB(209, 146, 146) RGBA(209, 146, 146, 1) string.unquoted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) support
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.class
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) support.constant
#C9C9C9 RGB(201, 201, 201) RGBA(201, 201, 201, 1) support.function
#C2A966 RGB(194, 169, 102) RGBA(194, 169, 102, 1) support.other
#CE6666 RGB(206, 102, 102) RGBA(206, 102, 102, 1) support.type
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) support.type.primitive
#4F89D6 RGB(79, 137, 214) RGBA(79, 137, 214, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) variable.function
#C2A966 RGB(194, 169, 102) RGBA(194, 169, 102, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#C7C7C7 RGB(199, 199, 199) RGBA(199, 199, 199, 1) variable.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.constant
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.property
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.readwrite
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.parameter
#C9C9C9 RGB(201, 201, 201) RGBA(201, 201, 201, 1)