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 | #b388d9 | italic |
| string, string.quoted | #00803a | — |
| constant.character.escape | #007a7a | bold |
| variable.other.format | #bf8600 | bold |
| constant.numeric | #e65100 | — |
| constant.language.boolean | #aa00ff | bold |
| keyword.other.goonsesh | #9b00e6 | bold |
| keyword.other.goon-binding | #9b00e6 | bold |
| keyword.other.goon-visibility | #8e24aa | italic |
| keyword.other.goon-module | #4a148c | — |
| keyword.other.goon-type-def | #9b00e6 | bold underline |
| keyword.other.goon-async | #007a7a | italic bold |
| keyword.other.goon-modifier | #7c4dff | — |
| keyword.control | #9b00e6 | — |
| keyword.control.return | #aa00ff | italic |
| keyword.control.break | #c62828 | bold |
| keyword.control.continue | #bf8600 | — |
| keyword.control.panic | #b71c1c | bold underline |
| keyword.control.debug | #bf8600 | italic |
| entity.name.function.macro.goonprint | #7c4dff | bold |
| entity.name.function.macro.ruin | #b71c1c | bold underline |
| entity.name.function.macro | #4a148c | — |
| entity.name.function | #0055cc | — |
| entity.name.type | #e65100 | bold |
| storage.type.primitive | #c2185b | — |
| support.type.option | #007a7a | bold |
| storage.modifier.lifetime | #bf8600 | italic |
| keyword.operator | #6a4c93 | — |
| keyword.operator.arrow | #9b00e6 | — |
| entity.other.attribute-name | #7c4dff | italic |
| variable.other | #1a0a2e | — |
| variable.parameter | #1565c0 | italic |
| punctuation | #8e6aad | — |
| punctuation.bracket, punctuation.section | #6a4c93 | — |
| variable.language.self, variable.language.this | #9b00e6 | italic |
| variable.other.constant, constant.other | #bf8600 | bold |
| entity.name.namespace, entity.name.module | #4a148c | — |
| entity.name.type.trait, entity.other.inherited-class | #007a7a | bold |
| variable.other.enummember, constant.other.enum | #e65100 | italic |
| punctuation.definition.macro | #7c4dff | — |
| constant.numeric.nice | #d81b60 | bold italic |
| constant.numeric.blaze | #2e7d32 | bold |
| constant.numeric.leet | #1b5e20 | bold italic |
| constant.numeric.goated | #f9a825 | bold underline |
| keyword.easter.gooner | #d500f9 | bold italic underline |
| keyword.easter.bruh | #558b2f | bold |
| keyword.easter.sigma | #00695c | bold italic |
| keyword.easter.gaming | #c62828 | 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}!`;
}