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
Enki Old
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
#3F414D RGB(63, 65, 77) RGBA(63, 65, 77, 1) comment.block
#3F414D RGB(63, 65, 77) RGBA(63, 65, 77, 1) comment.block.documentation
#3F414D RGB(63, 65, 77) RGBA(63, 65, 77, 1) comment.line
#3F414D RGB(63, 65, 77) RGBA(63, 65, 77, 1) constant
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) constant.character
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.character.escape
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) constant.numeric
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.numeric.integer
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.numeric.float
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.numeric.hex
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.numeric.octal
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.other
#E16325 RGB(225, 99, 37) RGBA(225, 99, 37, 1) entity
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) entity.name
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) entity.name.class
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) entity.name.function
#FF435B RGB(255, 67, 91) RGBA(255, 67, 91, 1) entity.name.method
#6699CC RGB(102, 153, 204) RGBA(102, 153, 204, 1) entity.name.tag
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) entity.name.type
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) entity.other
#C33C4A RGB(195, 60, 74) RGBA(195, 60, 74, 1) entity.other.attribute-name
#FF435B RGB(255, 67, 91) RGBA(255, 67, 91, 1) entity.other.inherited-class
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#CA9B55 RGB(202, 155, 85) RGBA(202, 155, 85, 1) keyword.control
#CA9B55 RGB(202, 155, 85) RGBA(202, 155, 85, 1) keyword.control.flow
#CA9B55 RGB(202, 155, 85) RGBA(202, 155, 85, 1) keyword.operator
#50B4DC RGB(80, 180, 220) RGBA(80, 180, 220, 1) keyword.operator.new
#50B4DC RGB(80, 180, 220) RGBA(80, 180, 220, 1) keyword.operator.assignment
#50B4DC RGB(80, 180, 220) RGBA(80, 180, 220, 1) keyword.operator.arithmetic
#50B4DC RGB(80, 180, 220) RGBA(80, 180, 220, 1) keyword.operator.logical
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) keyword.other
#CA9B55 RGB(202, 155, 85) RGBA(202, 155, 85, 1) markup
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 1) markup.bold
#89B3E7 RGB(137, 179, 231) RGBA(137, 179, 231, 1) markup.changed
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) markup.deleted
#D93232 RGB(217, 50, 50) RGBA(217, 50, 50, 1) markup.heading
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) markup.inserted
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) markup.italic
#89B3E7 RGB(137, 179, 231) RGBA(137, 179, 231, 1) markup.list
#879FD1 RGB(135, 159, 209) RGBA(135, 159, 209, 1) markup.list.numbered
#879FD1 RGB(135, 159, 209) RGBA(135, 159, 209, 1) markup.list.unnumbered
#879FD1 RGB(135, 159, 209) RGBA(135, 159, 209, 1) markup.quote
#89B3E7 RGB(137, 179, 231) RGBA(137, 179, 231, 1) markup.raw
#EB8060 RGB(235, 128, 96) RGBA(235, 128, 96, 1) markup.underline
#6D3B66 RGB(109, 59, 102) RGBA(109, 59, 102, 1) markup.underline.link
#6D3B66 RGB(109, 59, 102) RGBA(109, 59, 102, 1) meta
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) meta.function-call
#83AADA RGB(131, 170, 218) RGBA(131, 170, 218, 1) meta.tag
#CA9B55 RGB(202, 155, 85) RGBA(202, 155, 85, 1) punctuation.definition.comment
#3F414D RGB(63, 65, 77) RGBA(63, 65, 77, 1) punctuation.definition.string.begin
#FF435B RGB(255, 67, 91) RGBA(255, 67, 91, 1) punctuation.definition.string.end
#FF435B RGB(255, 67, 91) RGBA(255, 67, 91, 1) punctuation.separator
#50B4DC RGB(80, 180, 220) RGBA(80, 180, 220, 1) punctuation.terminator
#767D8E RGB(118, 125, 142) RGBA(118, 125, 142, 1) storage
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) storage.modifier
#CA9B55 RGB(202, 155, 85) RGBA(202, 155, 85, 1) storage.type
#6D3B66 RGB(109, 59, 102) RGBA(109, 59, 102, 1) string
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) string.interpolated
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) string.other
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) string.quoted
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) string.quoted.double
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) string.quoted.other
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) string.quoted.single
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) string.quoted.triple
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) string.regexp
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) string.template
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) string.unquoted
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) support
#CA9B55 RGB(202, 155, 85) RGBA(202, 155, 85, 1) support.class
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) support.constant
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) support.function
#83AADA RGB(131, 170, 218) RGBA(131, 170, 218, 1) support.other
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) support.type
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) support.type.primitive
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) support.type.property-name
#6189BB RGB(97, 137, 187) RGBA(97, 137, 187, 1) variable
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) variable.function
#83AADA RGB(131, 170, 218) RGBA(131, 170, 218, 1) variable.language
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) variable.name
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) variable.other
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) variable.other.constant
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) variable.other.property
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) variable.other.readwrite
#B376B3 RGB(179, 118, 179) RGBA(179, 118, 179, 1) variable.parameter
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1)