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
escook Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) activityBar.border
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) activityBar.foreground
#77777B RGB(119, 119, 123) RGBA(119, 119, 123, 1) activityBar.inactiveForeground
#49494B RGB(73, 73, 75) RGBA(73, 73, 75, 1) activityBarBadge.background
#77777B RGB(119, 119, 123) RGBA(119, 119, 123, 1) button.background
#EF820C RGB(239, 130, 12) RGBA(239, 130, 12, 1) editor.background
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) editor.foreground
#80CBC470 RGB(128, 203, 196) RGBA(128, 203, 196, 0.439) editor.lineHighlightBackground
#00000030 RGB(0, 0, 0) RGBA(0, 0, 0, 0.188) editor.selectionBackground
#80CBC420 RGB(128, 203, 196) RGBA(128, 203, 196, 0.125) editorCursor.foreground
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) editorIndentGuide.background
#37474F80 RGB(55, 71, 79) RGBA(55, 71, 79, 0.502) editorWhitespace.foreground
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) focusBorder
#FF9940 RGB(255, 153, 64) RGBA(255, 153, 64, 1) input.border
#77777B RGB(119, 119, 123) RGBA(119, 119, 123, 1) input.foreground
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) input.placeholderForeground
#B3B9BF RGB(179, 185, 191) RGBA(179, 185, 191, 1) inputOption.activeBorder
#FF9940 RGB(255, 153, 64) RGBA(255, 153, 64, 1) inputValidation.errorBackground
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) inputValidation.errorBorder
#F51818 RGB(245, 24, 24) RGBA(245, 24, 24, 1) inputValidation.infoBackground
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) inputValidation.infoBorder
#55B4D4 RGB(85, 180, 212) RGBA(85, 180, 212, 1) inputValidation.warningBackground
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) inputValidation.warningBorder
#F2AE49 RGB(242, 174, 73) RGBA(242, 174, 73, 1) list.activeSelectionBackground
#2E2E2E RGB(46, 46, 46) RGBA(46, 46, 46, 1) list.focusOutline
#2E2E2E RGB(46, 46, 46) RGBA(46, 46, 46, 1) menu.background
#29292C RGB(41, 41, 44) RGBA(41, 41, 44, 1) menu.border
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) menu.foreground
#898989 RGB(137, 137, 137) RGBA(137, 137, 137, 1) menu.selectionForeground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) menu.separatorBackground
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) panel.border
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) panelTitle.activeBorder
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) panelTitle.activeForeground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) panelTitle.inactiveForeground
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) sash.hoverBorder
#5C0000 RGB(92, 0, 0) RGBA(92, 0, 0, 1) sideBar.border
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) statusBar.background
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) statusBar.border
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) statusBar.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) tab.activeBackground
#29292C RGB(41, 41, 44) RGBA(41, 41, 44, 1) tab.activeBorder
#EF820C RGB(239, 130, 12) RGBA(239, 130, 12, 1) tab.inactiveBackground
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) textLink.foreground
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) titleBar.activeBackground
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) titleBar.border
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 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
#4CAE4C RGB(76, 174, 76) RGBA(76, 174, 76, 1) comment.block
#4CAE4C RGB(76, 174, 76) RGBA(76, 174, 76, 1) comment.block.documentation
#4CAE4C RGB(76, 174, 76) RGBA(76, 174, 76, 1) comment.line
#4CAE4C RGB(76, 174, 76) RGBA(76, 174, 76, 1) constant
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.character
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.character.escape
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.numeric
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.numeric.integer
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.numeric.float
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.numeric.hex
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.numeric.octal
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.other
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.other.placeholder
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.regexp
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.rgb-value
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) entity
#1290BF RGB(18, 144, 191) RGBA(18, 144, 191, 1) entity.name
#1290BF RGB(18, 144, 191) RGBA(18, 144, 191, 1) entity.name.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.function
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) entity.name.section
#78CCF0 RGB(120, 204, 240) RGBA(120, 204, 240, 1) entity.name.tag
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) entity.name.type
#1290BF RGB(18, 144, 191) RGBA(18, 144, 191, 1) entity.name.type.interface
#1290BF RGB(18, 144, 191) RGBA(18, 144, 191, 1) entity.other
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 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
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.control
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.control.flow
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) keyword.operator.new
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) keyword.operator.assignment
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) keyword.operator.arithmetic
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) keyword.operator.logical
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) keyword.other
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.bold
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.inserted
#F1E655 RGB(241, 230, 85) RGBA(241, 230, 85, 1) markup.italic
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.list
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.list.numbered
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.list.unnumbered
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.quote
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) markup.raw
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) meta
#17A5DB RGB(23, 165, 219) RGBA(23, 165, 219, 1) meta.class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.function-call
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) meta.selector
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) meta.tag
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) meta.type.annotation
#17A5DB RGB(23, 165, 219) RGBA(23, 165, 219, 1) meta.type
#17A5DB RGB(23, 165, 219) RGBA(23, 165, 219, 1) punctuation.definition.comment
#5C7E8C RGB(92, 126, 140) RGBA(92, 126, 140, 1) punctuation.definition.string.begin
#D9F5DD RGB(217, 245, 221) RGBA(217, 245, 221, 1) punctuation.definition.string.end
#D9F5DD RGB(217, 245, 221) RGBA(217, 245, 221, 1) punctuation.separator
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) storage
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) storage.modifier
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) storage.type
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) string
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.interpolated
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.double
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.single
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.triple
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.regexp
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) string.template
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.unquoted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) support.function
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) support.type
#FFEB95 RGB(255, 235, 149) RGBA(255, 235, 149, 1) support.type.primitive
#FFEB95 RGB(255, 235, 149) RGBA(255, 235, 149, 1) support.type.property-name
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) variable
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.function
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.other
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.other.constant
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.other.property
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.other.readwrite
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.parameter
#FD8B19 RGB(253, 139, 25) RGBA(253, 139, 25, 1)