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
Darcula - WebStorm Edition
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editorCodeLens.foreground
#546E7A9F RGB(84, 110, 122) RGBA(84, 110, 122, 0.624) editorGutter.background
#313335 RGB(49, 51, 53) RGBA(49, 51, 53, 1) editorIndentGuide.activeBackground
#BBBBBBA4 RGB(187, 187, 187) RGBA(187, 187, 187, 0.643) sideBar.background
#3C3F41 RGB(60, 63, 65) RGBA(60, 63, 65, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 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
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block.documentation
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.line
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) constant
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.character
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) constant.character.escape
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) constant.numeric
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.numeric.integer
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.numeric.float
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.numeric.hex
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.numeric.octal
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.other
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.other.placeholder
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) entity
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) entity.name
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.class
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.function
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) entity.name.method
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.namespace
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.section
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.selector
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.tag
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) entity.name.type
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.type.enum
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.type.interface
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.type.struct
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.other
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) entity.other.attribute-name
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) entity.other.inherited-class
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 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
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) keyword.control
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.control.flow
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.operator
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) keyword.operator.new
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.operator.assignment
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) keyword.operator.arithmetic
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) keyword.operator.logical
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) keyword.other
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) markup
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) markup.changed
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) markup.inline.raw
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) meta
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) meta.function-call
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) meta.tag
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) punctuation.definition.bracket
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) punctuation.definition.string.begin
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) punctuation.definition.string.end
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) punctuation.separator
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) punctuation.separator.continuation
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) punctuation.terminator
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) storage
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) storage.modifier
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) storage.type
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) string
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) string.interpolated
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) string.other
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) string.quoted
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) string.quoted.double
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) string.quoted.other
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) string.quoted.single
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) string.quoted.triple
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) string.regexp
#DFD940 RGB(223, 217, 64) RGBA(223, 217, 64, 1) string.template
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) string.unquoted
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) support
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) support.class
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) support.constant
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) support.function
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) support.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support.type
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) support.type.primitive
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) support.type.property-name
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) support.variable
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.function
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) variable.language
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) variable.name
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) variable.other.constant
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) variable.other.property
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other.readwrite
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) variable.parameter
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1)