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
BBEdit Light
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
#967BB2 RGB(150, 123, 178) RGBA(150, 123, 178, 1) comment.block
#967BB2 RGB(150, 123, 178) RGBA(150, 123, 178, 1) comment.block.documentation
#967BB2 RGB(150, 123, 178) RGBA(150, 123, 178, 1) comment.line
#967BB2 RGB(150, 123, 178) RGBA(150, 123, 178, 1) constant
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) constant.character
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) constant.character.escape
#C83B81 RGB(200, 59, 129) RGBA(200, 59, 129, 1) constant.numeric
#BB5F0B RGB(187, 95, 11) RGBA(187, 95, 11, 1) constant.numeric.integer
#BB5F0B RGB(187, 95, 11) RGBA(187, 95, 11, 1) constant.numeric.float
#BB5F0B RGB(187, 95, 11) RGBA(187, 95, 11, 1) constant.numeric.hex
#BB5F0B RGB(187, 95, 11) RGBA(187, 95, 11, 1) constant.numeric.octal
#BB5F0B RGB(187, 95, 11) RGBA(187, 95, 11, 1) constant.other
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) constant.other.placeholder
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) constant.regexp
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) constant.rgb-value
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) entity
#141314 RGB(20, 19, 20) RGBA(20, 19, 20, 1) entity.name
#141314 RGB(20, 19, 20) RGBA(20, 19, 20, 1) entity.name.function
#141314 RGB(20, 19, 20) RGBA(20, 19, 20, 1) invalid
#D02325 RGB(208, 35, 37) RGBA(208, 35, 37, 1) invalid.deprecated
#D02325 RGB(208, 35, 37) RGBA(208, 35, 37, 1) invalid.illegal
#D02325 RGB(208, 35, 37) RGBA(208, 35, 37, 1) keyword
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) keyword.control
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) keyword.control.flow
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) keyword.operator
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) keyword.operator.new
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) keyword.operator.assignment
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) keyword.operator.arithmetic
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) keyword.operator.logical
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) keyword.other
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) markup
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) markup.heading
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) markup.list
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) markup.list.numbered
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) markup.list.unnumbered
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) markup.quote
#141314 RGB(20, 19, 20) RGBA(20, 19, 20, 1) meta
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) meta.tag
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) storage
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) storage.modifier
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) storage.type
#374FF4 RGB(55, 79, 244) RGBA(55, 79, 244, 1) string
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) string.interpolated
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) string.other
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) string.quoted
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) string.quoted.double
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) string.quoted.other
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) string.quoted.single
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) string.quoted.triple
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) string.regexp
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) string.template
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) string.unquoted
#BD176B RGB(189, 23, 107) RGBA(189, 23, 107, 1) support
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) support.class
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) support.constant
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) support.function
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) support.other
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) support.type
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) support.type.primitive
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) support.type.property-name
#326DBA RGB(50, 109, 186) RGBA(50, 109, 186, 1) variable
#141314 RGB(20, 19, 20) RGBA(20, 19, 20, 1) variable.language
#141314 RGB(20, 19, 20) RGBA(20, 19, 20, 1) variable.other
#141314 RGB(20, 19, 20) RGBA(20, 19, 20, 1) variable.other.constant
#141314 RGB(20, 19, 20) RGBA(20, 19, 20, 1) variable.other.property
#141314 RGB(20, 19, 20) RGBA(20, 19, 20, 1) variable.other.readwrite
#141314 RGB(20, 19, 20) RGBA(20, 19, 20, 1)