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
FireCode
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
#6D6D6D RGB(109, 109, 109) RGBA(109, 109, 109, 1) comment.block
#6D6D6D RGB(109, 109, 109) RGBA(109, 109, 109, 1) comment.block.documentation
#6D6D6D RGB(109, 109, 109) RGBA(109, 109, 109, 1) comment.line
#6D6D6D RGB(109, 109, 109) RGBA(109, 109, 109, 1) constant
#FFD0FB RGB(255, 208, 251) RGBA(255, 208, 251, 1) constant.character
#FC9354 RGB(252, 147, 84) RGBA(252, 147, 84, 1) constant.character.escape
#FC9354 RGB(252, 147, 84) RGBA(252, 147, 84, 1) constant.numeric
#FC9354 RGB(252, 147, 84) RGBA(252, 147, 84, 1) constant.numeric.integer
#FC9354 RGB(252, 147, 84) RGBA(252, 147, 84, 1) constant.numeric.float
#FC9354 RGB(252, 147, 84) RGBA(252, 147, 84, 1) constant.numeric.hex
#FC9354 RGB(252, 147, 84) RGBA(252, 147, 84, 1) constant.numeric.octal
#FC9354 RGB(252, 147, 84) RGBA(252, 147, 84, 1) constant.other
#FC9354 RGB(252, 147, 84) RGBA(252, 147, 84, 1) constant.other.placeholder
#FC9354 RGB(252, 147, 84) RGBA(252, 147, 84, 1) entity
#FFB2F9 RGB(255, 178, 249) RGBA(255, 178, 249, 1) entity.name
#FFB2F9 RGB(255, 178, 249) RGBA(255, 178, 249, 1) entity.name.class
#2E98E2 RGB(46, 152, 226) RGBA(46, 152, 226, 1) entity.name.function
#2E98E2 RGB(46, 152, 226) RGBA(46, 152, 226, 1) entity.name.tag
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) entity.name.type
#FFB2F9 RGB(255, 178, 249) RGBA(255, 178, 249, 1) entity.other
#2E98E2 RGB(46, 152, 226) RGBA(46, 152, 226, 1) entity.other.attribute-name
#2E98E2 RGB(46, 152, 226) RGBA(46, 152, 226, 1) entity.other.inherited-class
#2E98E2 RGB(46, 152, 226) RGBA(46, 152, 226, 1) invalid
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) keyword.control
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) keyword.control.flow
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) keyword.operator
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) keyword.operator.new
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) keyword.operator.assignment
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) keyword.operator.arithmetic
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) keyword.operator.logical
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) keyword.other
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) meta
#FAB85A RGB(250, 184, 90) RGBA(250, 184, 90, 1) meta.function-call
#FAB85A RGB(250, 184, 90) RGBA(250, 184, 90, 1) meta.tag
#CD5AC5 RGB(205, 90, 197) RGBA(205, 90, 197, 1) punctuation.separator
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) storage.modifier
#F63249 RGB(246, 50, 73) RGBA(246, 50, 73, 1) storage.type
#73C3D2 RGB(115, 195, 210) RGBA(115, 195, 210, 1) string
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) string.interpolated
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) string.other
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) string.quoted
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) string.quoted.double
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) string.quoted.other
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) string.quoted.single
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) string.quoted.triple
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) string.regexp
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) string.template
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) string.unquoted
#97D8EA RGB(151, 216, 234) RGBA(151, 216, 234, 1) support
#90E7F7 RGB(144, 231, 247) RGBA(144, 231, 247, 1) support.class
#8ECFDB RGB(142, 207, 219) RGBA(142, 207, 219, 1) support.constant
#8ECFDB RGB(142, 207, 219) RGBA(142, 207, 219, 1) support.function
#8ECFDB RGB(142, 207, 219) RGBA(142, 207, 219, 1) support.other
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type
#8ECFDB RGB(142, 207, 219) RGBA(142, 207, 219, 1) support.type.primitive
#8ECFDB RGB(142, 207, 219) RGBA(142, 207, 219, 1) support.type.property-name
#8ECFDB RGB(142, 207, 219) RGBA(142, 207, 219, 1) variable
#FFE1FC RGB(255, 225, 252) RGBA(255, 225, 252, 1) variable.language
#D66990 RGB(214, 105, 144) RGBA(214, 105, 144, 1) variable.other
#FFE1FC RGB(255, 225, 252) RGBA(255, 225, 252, 1) variable.other.property
#FFE1FC RGB(255, 225, 252) RGBA(255, 225, 252, 1) variable.parameter
#FC9354 RGB(252, 147, 84) RGBA(252, 147, 84, 1)