VB Helper
Publisher: kim huiThemes in package: 1
VB.NET 개발을 위한 문법 강조, 스니펫, Go-to-Definition, Hover, 빌드/실행 도구
VB.NET 개발을 위한 문법 강조, 스니펫, Go-to-Definition, Hover, 빌드/실행 도구
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.apostrophe.vb, comment.line.apostrophe.gpl, comment.line.semicolon.pac, comment.line.hash.pac, punctuation.definition.comment | #6A9955 | italic |
| string, string.quoted.double.vb, string.quoted.double.gpl | #CE9178 | — |
| constant.numeric, constant.numeric.decimal.vb, constant.numeric.decimal.gpl, constant.numeric.decimal.pac | #B5CEA8 | — |
| constant.language, constant.language.boolean.vb, constant.language.boolean.gpl, keyword.other.true.pac, keyword.other.false.pac | #569CD6 | — |
| keyword.control, keyword.control.vb, keyword.control.gpl | #C586C0 | — |
| keyword.declaration.vb, keyword.declaration.gpl, storage.type.function.vb, storage.type.function.gpl | #569CD6 | bold |
| keyword.other.vb, keyword.other.gpl | #569CD6 | — |
| storage.modifier, storage.modifier.vb, storage.modifier.gpl | #569CD6 | — |
| storage.type, storage.type.vb, storage.type.gpl, support.type.vb | #4EC9B0 | — |
| keyword.operator, keyword.operator.vb, keyword.operator.gpl, keyword.operator.arithmetic.vb, keyword.operator.comparison.vb, keyword.operator.logical.vb | #D4D4D4 | — |
| entity.name.function, entity.name.function.vb, entity.name.function.gpl, meta.function-call, support.function | #DCDCAA | — |
| entity.name.type, entity.name.type.class.vb, entity.name.type.module.vb, entity.name.class, entity.name.module | #4EC9B0 | — |
| variable, variable.other, variable.other.vb, variable.other.gpl, variable.parameter | #9CDCFE | — |
| support.class.gpl, support.class.builtin.gpl | #4FC1FF | bold |
| support.function.gpl, support.function.builtin.gpl | #DCDCAA | — |
| entity.name.tag.dataid.pac, keyword.other.dataid.pac | #CE9178 | bold |
| entity.name.section.pac | #D7BA7D | bold |
| keyword.other.key.pac | #9CDCFE | — |
| string.unquoted.value.pac | #CE9178 | — |
| punctuation.separator, punctuation.terminator, meta.brace | #D4D4D4 | — |
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}!`;
}