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
Forest Focus
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) activityBar.border
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 1) activityBar.foreground
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) activityBarBadge.background
#8FC269 RGB(143, 194, 105) RGBA(143, 194, 105, 1) editor.background
#232023 RGB(35, 32, 35) RGBA(35, 32, 35, 1) editor.foreground
#B8BDA7 RGB(184, 189, 167) RGBA(184, 189, 167, 1) editor.lineHighlightBackground
#FFFFFF08 RGB(255, 255, 255) RGBA(255, 255, 255, 0.031) editor.selectionBackground
#DDF0FF33 RGB(221, 240, 255) RGBA(221, 240, 255, 0.2) editorCursor.foreground
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) editorGroupHeader.tabsBackground
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 1) editorLineNumber.foreground
#41463D RGB(65, 70, 61) RGBA(65, 70, 61, 1) editorWhitespace.foreground
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) gitDecoration.conflictingResourceForeground
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) gitDecoration.deletedResourceForeground
#BB90D8 RGB(187, 144, 216) RGBA(187, 144, 216, 1) gitDecoration.ignoredResourceForeground
#4E5350 RGB(78, 83, 80) RGBA(78, 83, 80, 1) gitDecoration.modifiedResourceForeground
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) gitDecoration.untrackedResourceForeground
#769BAA RGB(118, 155, 170) RGBA(118, 155, 170, 1) sideBar.background
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) sideBarSectionHeader.background
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) sideBarTitle.foreground
#8FC269 RGB(143, 194, 105) RGBA(143, 194, 105, 1) statusBar.background
#6E9651 RGB(110, 150, 81) RGBA(110, 150, 81, 1) statusBar.debuggingBackground
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) statusBar.debuggingForeground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) statusBar.noFolderBackground
#4C5C3F RGB(76, 92, 63) RGBA(76, 92, 63, 1) tab.activeBackground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) tab.activeBorder
#8FC269 RGB(143, 194, 105) RGBA(143, 194, 105, 1) tab.border
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) tab.hoverBackground
#8FC269 RGB(143, 194, 105) RGBA(143, 194, 105, 1) tab.inactiveBackground
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 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
#8B7D6C RGB(139, 125, 108) RGBA(139, 125, 108, 1) comment.block
#8B7D6C RGB(139, 125, 108) RGBA(139, 125, 108, 1) comment.block.documentation
#8B7D6C RGB(139, 125, 108) RGBA(139, 125, 108, 1) comment.line
#8B7D6C RGB(139, 125, 108) RGBA(139, 125, 108, 1) constant
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) constant.character
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) constant.character.escape
#CF7D34 RGB(207, 125, 52) RGBA(207, 125, 52, 1) constant.numeric
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) constant.numeric.integer
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) constant.numeric.float
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) constant.numeric.hex
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) constant.numeric.octal
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) constant.other
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) constant.other.placeholder
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) constant.regexp
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) constant.rgb-value
#718242 RGB(113, 130, 66) RGBA(113, 130, 66, 1) entity
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.class
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.function
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.method
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.namespace
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.section
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.selector
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.tag
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.type
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.type.enum
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.type.interface
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.name.type.struct
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.other
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.other.attribute-name
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) entity.other.inherited-class
#9996BA RGB(153, 150, 186) RGBA(153, 150, 186, 1) invalid
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) invalid.deprecated
#D2A8A1 RGB(210, 168, 161) RGBA(210, 168, 161, 1) invalid.illegal
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) keyword
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.control
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.control.flow
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.new
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.assignment
#5EAB30 RGB(94, 171, 48) RGBA(94, 171, 48, 1) keyword.operator.arithmetic
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) keyword.operator.logical
#5EAB30 RGB(94, 171, 48) RGBA(94, 171, 48, 1) keyword.other
#AFC4DB RGB(175, 196, 219) RGBA(175, 196, 219, 1) markup
#565656 RGB(86, 86, 86) RGBA(86, 86, 86, 1) markup.bold
#C0C0C0 RGB(192, 192, 192) RGBA(192, 192, 192, 1) markup.changed
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) markup.deleted
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) markup.heading
#CF6A4C RGB(207, 106, 76) RGBA(207, 106, 76, 1) markup.inserted
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) markup.italic
#C0C0C0 RGB(192, 192, 192) RGBA(192, 192, 192, 1) markup.list
#F9EE98 RGB(249, 238, 152) RGBA(249, 238, 152, 1) markup.list.numbered
#F9EE98 RGB(249, 238, 152) RGBA(249, 238, 152, 1) markup.list.unnumbered
#F9EE98 RGB(249, 238, 152) RGBA(249, 238, 152, 1) markup.underline
#C0C0C0 RGB(192, 192, 192) RGBA(192, 192, 192, 1) markup.underline.link
#C0C0C0 RGB(192, 192, 192) RGBA(192, 192, 192, 1) meta
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) meta.block
#9FB760 RGB(159, 183, 96) RGBA(159, 183, 96, 1) meta.function-call
#37DACD RGB(55, 218, 205) RGBA(55, 218, 205, 1) meta.preprocessor
#8996A8 RGB(137, 150, 168) RGBA(137, 150, 168, 1) meta.tag
#698145 RGB(105, 129, 69) RGBA(105, 129, 69, 1) punctuation.definition.string.begin
#9FB760 RGB(159, 183, 96) RGBA(159, 183, 96, 1) punctuation.definition.string.end
#9FB760 RGB(159, 183, 96) RGBA(159, 183, 96, 1) punctuation.separator
#E0B60D RGB(224, 182, 13) RGBA(224, 182, 13, 1) punctuation.separator.continuation
#E0B60D RGB(224, 182, 13) RGBA(224, 182, 13, 1) punctuation.terminator
#E0B60D RGB(224, 182, 13) RGBA(224, 182, 13, 1) storage
#C99152 RGB(201, 145, 82) RGBA(201, 145, 82, 1) storage.modifier
#C99152 RGB(201, 145, 82) RGBA(201, 145, 82, 1) storage.type
#C99152 RGB(201, 145, 82) RGBA(201, 145, 82, 1) string
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.interpolated
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.other
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.double
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.other
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.single
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.quoted.triple
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.regexp
#E9C062 RGB(233, 192, 98) RGBA(233, 192, 98, 1) string.template
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) string.unquoted
#494949 RGB(73, 73, 73) RGBA(73, 73, 73, 1) support
#C96248 RGB(201, 98, 72) RGBA(201, 98, 72, 1) support.class
#C96248 RGB(201, 98, 72) RGBA(201, 98, 72, 1) support.constant
#CF6A4C RGB(207, 106, 76) RGBA(207, 106, 76, 1) support.function
#E0A235 RGB(224, 162, 53) RGBA(224, 162, 53, 1) support.other
#C96248 RGB(201, 98, 72) RGBA(201, 98, 72, 1) support.type
#C96248 RGB(201, 98, 72) RGBA(201, 98, 72, 1) support.type.primitive
#C96248 RGB(201, 98, 72) RGBA(201, 98, 72, 1) support.type.property-name
#C96248 RGB(201, 98, 72) RGBA(201, 98, 72, 1) support.variable
#C96248 RGB(201, 98, 72) RGBA(201, 98, 72, 1) variable
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) variable.function
#E2C484 RGB(226, 196, 132) RGBA(226, 196, 132, 1) variable.language
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) variable.name
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) variable.other
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) variable.other.constant
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) variable.other.property
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) variable.other.readwrite
#339966 RGB(51, 153, 102) RGBA(51, 153, 102, 1) variable.parameter
#B864C7 RGB(184, 100, 199) RGBA(184, 100, 199, 1)