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
Derwish Theme13
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#33373B RGB(51, 55, 59) RGBA(51, 55, 59, 1) dropdown.background
#373D42 RGB(55, 61, 66) RGBA(55, 61, 66, 1) editor.background
#2D3033 RGB(45, 48, 51) RGBA(45, 48, 51, 1) editor.foreground
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) editor.lineHighlightBackground
#40454A RGB(64, 69, 74) RGBA(64, 69, 74, 1) editor.selectionBackground
#44494F RGB(68, 73, 79) RGBA(68, 73, 79, 1) editorGroupHeader.tabsBackground
#26292E RGB(38, 41, 46) RGBA(38, 41, 46, 1) editorHoverWidget.background
#26292E RGB(38, 41, 46) RGBA(38, 41, 46, 1) editorWidget.background
#26292E RGB(38, 41, 46) RGBA(38, 41, 46, 1) input.background
#33373B RGB(51, 55, 59) RGBA(51, 55, 59, 1) list.activeSelectionBackground
#373D42 RGB(55, 61, 66) RGBA(55, 61, 66, 1) list.focusBackground
#373D42 RGB(55, 61, 66) RGBA(55, 61, 66, 1) list.hoverBackground
#303438 RGB(48, 52, 56) RGBA(48, 52, 56, 1) list.inactiveSelectionBackground
#373D42 RGB(55, 61, 66) RGBA(55, 61, 66, 1) notification.background
#26292E RGB(38, 41, 46) RGBA(38, 41, 46, 1) peekViewEditor.background
#232426 RGB(35, 36, 38) RGBA(35, 36, 38, 1) selectionBackground
#44494F RGB(68, 73, 79) RGBA(68, 73, 79, 1) sideBar.background
#26292E RGB(38, 41, 46) RGBA(38, 41, 46, 1) statusBar.background
#33373B RGB(51, 55, 59) RGBA(51, 55, 59, 1) statusBar.debuggingBackground
#474D52 RGB(71, 77, 82) RGBA(71, 77, 82, 1) statusBar.noFolderBackground
#33373B RGB(51, 55, 59) RGBA(51, 55, 59, 1) tab.activeBackground
#373D42 RGB(55, 61, 66) RGBA(55, 61, 66, 1) tab.inactiveBackground
#26292E RGB(38, 41, 46) RGBA(38, 41, 46, 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
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) comment.block
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) comment.block.documentation
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) comment.line
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) constant
#5FB3B3 RGB(95, 179, 179) RGBA(95, 179, 179, 1) constant.character
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) constant.character.escape
#5FB3B3 RGB(95, 179, 179) RGBA(95, 179, 179, 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
#F7DD8F RGB(247, 221, 143) RGBA(247, 221, 143, 1) entity
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) entity.name
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) entity.name.class
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) entity.name.function
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) entity.name.method
#8AC6F2 RGB(138, 198, 242) RGBA(138, 198, 242, 1) entity.name.tag
#8AC6F2 RGB(138, 198, 242) RGBA(138, 198, 242, 1) entity.name.type
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) entity.other
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) entity.other.attribute-name
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) entity.other.inherited-class
#F7DD8F RGB(247, 221, 143) RGBA(247, 221, 143, 1) keyword
#5FB3B3 RGB(95, 179, 179) RGBA(95, 179, 179, 1) keyword.control
#5FB3B3 RGB(95, 179, 179) RGBA(95, 179, 179, 1) keyword.control.flow
#5FB3B3 RGB(95, 179, 179) RGBA(95, 179, 179, 1) keyword.operator
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) keyword.operator.new
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) keyword.operator.assignment
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) keyword.operator.arithmetic
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) keyword.operator.logical
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) keyword.other
#5FB3B3 RGB(95, 179, 179) RGBA(95, 179, 179, 1) markup
#BB80B3 RGB(187, 128, 179) RGBA(187, 128, 179, 1) markup.changed
#BB80B3 RGB(187, 128, 179) RGBA(187, 128, 179, 1) markup.deleted
#EC5F67 RGB(236, 95, 103) RGBA(236, 95, 103, 1) markup.heading
#F7DD8F RGB(247, 221, 143) RGBA(247, 221, 143, 1) markup.inserted
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) meta
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) meta.function-call
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) meta.tag
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) punctuation.definition.bracket
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) punctuation.definition.comment
#56606B RGB(86, 96, 107) RGBA(86, 96, 107, 1) punctuation.definition.string.begin
#C594C5 RGB(197, 148, 197) RGBA(197, 148, 197, 1) punctuation.definition.string.end
#C594C5 RGB(197, 148, 197) RGBA(197, 148, 197, 1) punctuation.separator
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) punctuation.separator.continuation
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) punctuation.terminator
#898E99 RGB(137, 142, 153) RGBA(137, 142, 153, 1) storage
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) storage.modifier
#8AC6F2 RGB(138, 198, 242) RGBA(138, 198, 242, 1) storage.type
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) string
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) string.interpolated
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) string.other
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) string.quoted
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) string.quoted.double
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) string.quoted.other
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) string.quoted.single
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) string.quoted.triple
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) string.regexp
#5FB3B3 RGB(95, 179, 179) RGBA(95, 179, 179, 1) string.template
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) string.unquoted
#B9E873 RGB(185, 232, 115) RGBA(185, 232, 115, 1) support
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) support.class
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) support.constant
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) support.function
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) support.other
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) support.type
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) support.type.primitive
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) support.type.property-name
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) variable
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) variable.function
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) variable.language
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) variable.name
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) variable.other
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) variable.other.constant
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) variable.other.property
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) variable.other.readwrite
#EDE6E4 RGB(237, 230, 228) RGBA(237, 230, 228, 1) variable.parameter
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1)