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
Firewatch Neutral
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
#506069 RGB(80, 96, 105) RGBA(80, 96, 105, 1) comment.block
#506069 RGB(80, 96, 105) RGBA(80, 96, 105, 1) comment.block.documentation
#506069 RGB(80, 96, 105) RGBA(80, 96, 105, 1) comment.line
#506069 RGB(80, 96, 105) RGBA(80, 96, 105, 1) constant
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) constant.character
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) constant.character.escape
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) constant.numeric
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) constant.numeric.integer
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) constant.numeric.float
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) constant.numeric.hex
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) constant.numeric.octal
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) constant.other
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) constant.other.placeholder
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) entity
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name
#E26B73 RGB(226, 107, 115) RGBA(226, 107, 115, 1) entity.name.class
#5E9CCF RGB(94, 156, 207) RGBA(94, 156, 207, 1) entity.name.function
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) entity.name.tag
#E26B73 RGB(226, 107, 115) RGBA(226, 107, 115, 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
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 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
#5E9CCF RGB(94, 156, 207) RGBA(94, 156, 207, 1) keyword.control
#5E9CCF RGB(94, 156, 207) RGBA(94, 156, 207, 1) keyword.control.flow
#5E9CCF RGB(94, 156, 207) RGBA(94, 156, 207, 1) keyword.operator
#5E9CCF RGB(94, 156, 207) RGBA(94, 156, 207, 1) keyword.operator.new
#5E9CCF RGB(94, 156, 207) RGBA(94, 156, 207, 1) keyword.operator.assignment
#5E9CCF RGB(94, 156, 207) RGBA(94, 156, 207, 1) keyword.operator.arithmetic
#5E9CCF RGB(94, 156, 207) RGBA(94, 156, 207, 1) keyword.operator.logical
#5E9CCF RGB(94, 156, 207) RGBA(94, 156, 207, 1) keyword.other
#5E9CCF RGB(94, 156, 207) RGBA(94, 156, 207, 1) storage
#E6C176 RGB(230, 193, 118) RGBA(230, 193, 118, 1) storage.modifier
#E6C176 RGB(230, 193, 118) RGBA(230, 193, 118, 1) storage.type
#E6C176 RGB(230, 193, 118) RGBA(230, 193, 118, 1) string
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) string.interpolated
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) string.other
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) string.quoted
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) string.quoted.double
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) string.quoted.other
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) string.quoted.single
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) string.quoted.triple
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) string.regexp
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) string.template
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) string.unquoted
#6AC38A RGB(106, 195, 138) RGBA(106, 195, 138, 1) support
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) support.class
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) support.constant
#DF671F RGB(223, 103, 31) RGBA(223, 103, 31, 1) support.function
#BD8BDF RGB(189, 139, 223) RGBA(189, 139, 223, 1) support.other
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) support.type
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) support.type.primitive
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) support.type.property-name
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) variable
#FA6981 RGB(250, 105, 129) RGBA(250, 105, 129, 1) variable.function
#FA6981 RGB(250, 105, 129) RGBA(250, 105, 129, 1) variable.language
#FA6981 RGB(250, 105, 129) RGBA(250, 105, 129, 1) variable.name
#FA6981 RGB(250, 105, 129) RGBA(250, 105, 129, 1) variable.other
#FA6981 RGB(250, 105, 129) RGBA(250, 105, 129, 1) variable.other.constant
#FA6981 RGB(250, 105, 129) RGBA(250, 105, 129, 1) variable.other.property
#FA6981 RGB(250, 105, 129) RGBA(250, 105, 129, 1) variable.other.readwrite
#FA6981 RGB(250, 105, 129) RGBA(250, 105, 129, 1) variable.parameter
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1)