GoonSharp Official
Publisher: Michael TunwasheThemes in package: 2
The official VS Code extension for GoonSharp — syntax highlighting, IntelliSense, and goon-level productivity.
The official VS Code extension for GoonSharp — syntax highlighting, IntelliSense, and goon-level productivity.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, comment.line, comment.block | #5c3d8f | italic |
| string, string.quoted | #00ff88 | — |
| constant.character.escape | #00ffcc | bold |
| variable.other.format | #ffdd00 | bold |
| constant.numeric | #ff6b00 | — |
| constant.language.boolean | #ff79f2 | bold |
| keyword.other.goonsesh | #ff2edc | bold |
| keyword.other.goon-binding | #ff2edc | bold |
| keyword.other.goon-visibility | #bb86fc | italic |
| keyword.other.goon-module | #9d4edd | — |
| keyword.other.goon-type-def | #ff2edc | bold underline |
| keyword.other.goon-async | #00ffcc | italic bold |
| keyword.other.goon-modifier | #b388ff | — |
| keyword.control | #ff2edc | — |
| keyword.control.return | #ff79f2 | italic |
| keyword.control.break | #ff3366 | bold |
| keyword.control.continue | #ffdd00 | — |
| keyword.control.panic | #ff0040 | bold underline |
| keyword.control.debug | #ffdd00 | italic |
| entity.name.function.macro.goonprint | #bb86fc | bold |
| entity.name.function.macro.ruin | #ff0040 | bold underline |
| entity.name.function.macro | #7c4dff | — |
| entity.name.function | #00aaff | — |
| entity.name.type | #ff6b00 | bold |
| storage.type.primitive | #ff5277 | — |
| support.type.option | #00ffcc | bold |
| storage.modifier.lifetime | #ffdd00 | italic |
| keyword.operator | #8e7ab5 | — |
| keyword.operator.arrow | #ff2edc | — |
| entity.other.attribute-name | #b388ff | italic |
| variable.other | #e0d4ff | — |
| variable.parameter | #80d4ff | italic |
| punctuation | #6b5a8e | — |
| punctuation.bracket, punctuation.section | #8e7ab5 | — |
| variable.language.self, variable.language.this | #ff2edc | italic |
| variable.other.constant, constant.other | #ffdd00 | bold |
| entity.name.namespace, entity.name.module | #9d4edd | — |
| entity.name.type.trait, entity.other.inherited-class | #00ffcc | bold |
| variable.other.enummember, constant.other.enum | #ff6b00 | italic |
| punctuation.definition.macro | #bb86fc | — |
| constant.numeric.nice | #ff69b4 | bold italic |
| constant.numeric.blaze | #39ff14 | bold |
| constant.numeric.leet | #00ff41 | bold italic |
| constant.numeric.goated | #ffd700 | bold underline |
| keyword.easter.gooner | #ff2edc | bold italic underline |
| keyword.easter.bruh | #adff2f | bold |
| keyword.easter.sigma | #00ffff | bold italic |
| keyword.easter.gaming | #ff4444 | bold |
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}!`;
}