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
Pharo
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) activityBarBadge.background
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) activityBarBadge.foreground
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) editor.background
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) editor.foreground
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) editor.lineHighlightBackground
#2A2C2E RGB(42, 44, 46) RGBA(42, 44, 46, 1) editor.lineHighlightBorder
#2A2C2E RGB(42, 44, 46) RGBA(42, 44, 46, 1) list.activeSelectionBackground
#2D5053 RGB(45, 80, 83) RGBA(45, 80, 83, 1) list.focusOutline
#2D5053 RGB(45, 80, 83) RGBA(45, 80, 83, 1) sideBar.background
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) sideBar.border
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) statusBar.background
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) statusBar.debuggingBackground
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) statusBar.foreground
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 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
#758084 RGB(117, 128, 132) RGBA(117, 128, 132, 1) comment.block
#758084 RGB(117, 128, 132) RGBA(117, 128, 132, 1) comment.block.documentation
#758084 RGB(117, 128, 132) RGBA(117, 128, 132, 1) comment.line
#758084 RGB(117, 128, 132) RGBA(117, 128, 132, 1) constant
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) constant.character
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) constant.character.escape
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) constant.numeric
#08B065 RGB(8, 176, 101) RGBA(8, 176, 101, 1) constant.numeric.integer
#08B065 RGB(8, 176, 101) RGBA(8, 176, 101, 1) constant.numeric.float
#08B065 RGB(8, 176, 101) RGBA(8, 176, 101, 1) constant.numeric.hex
#08B065 RGB(8, 176, 101) RGBA(8, 176, 101, 1) constant.numeric.octal
#08B065 RGB(8, 176, 101) RGBA(8, 176, 101, 1) constant.other
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) constant.other.placeholder
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) entity
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) entity.name
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.name.class
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.name.function
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.name.method
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.name.namespace
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.name.section
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.name.selector
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.name.tag
#08B065 RGB(8, 176, 101) RGBA(8, 176, 101, 1) entity.name.type
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.name.type.enum
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.name.type.interface
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.name.type.struct
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.other
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.other.attribute-name
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) entity.other.inherited-class
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) invalid
#CC7268 RGB(204, 114, 104) RGBA(204, 114, 104, 1) invalid.deprecated
#CC7268 RGB(204, 114, 104) RGBA(204, 114, 104, 1) invalid.illegal
#CC7268 RGB(204, 114, 104) RGBA(204, 114, 104, 1) keyword
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) keyword.control
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) keyword.control.flow
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) keyword.operator
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) keyword.operator.new
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) keyword.operator.assignment
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) keyword.operator.arithmetic
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) keyword.operator.logical
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) keyword.other
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) markup
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) markup.changed
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) markup.heading
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) markup.inserted
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) meta
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) meta.function-call
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) meta.tag
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) punctuation.definition.bracket
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) punctuation.definition.comment
#758084 RGB(117, 128, 132) RGBA(117, 128, 132, 1) punctuation.definition.string.begin
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) punctuation.definition.string.end
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) punctuation.separator
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) punctuation.separator.continuation
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) punctuation.terminator
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) storage
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) storage.modifier
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) storage.type
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) string
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) string.interpolated
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) string.other
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) string.quoted
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) string.quoted.double
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) string.quoted.other
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) string.quoted.single
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) string.quoted.triple
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) string.regexp
#08B065 RGB(8, 176, 101) RGBA(8, 176, 101, 1) string.template
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) string.unquoted
#CA781E RGB(202, 120, 30) RGBA(202, 120, 30, 1) support
#A7CE67 RGB(167, 206, 103) RGBA(167, 206, 103, 1) support.class
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) support.constant
#08B065 RGB(8, 176, 101) RGBA(8, 176, 101, 1) support.function
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) support.other
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) support.type
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) support.type.primitive
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) support.type.property-name
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) variable
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) variable.function
#66B5BC RGB(102, 181, 188) RGBA(102, 181, 188, 1) variable.language
#08B065 RGB(8, 176, 101) RGBA(8, 176, 101, 1) variable.name
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) variable.other
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) variable.other.constant
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) variable.other.property
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) variable.other.readwrite
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1) variable.parameter
#C6D1D2 RGB(198, 209, 210) RGBA(198, 209, 210, 1)