Kusto Syntax Highlighter
Publisher: ao-baruwaThemes in package: 2
A Visual Studio Code extension for KQL (Kusto Query Language) syntax highlighting and custom themes.
A Visual Studio Code extension for KQL (Kusto Query Language) syntax highlighting and custom themes.
Full workbench mockup using this variant's colors and tokenColors.
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| keyword.table.control.kusto | #0000FF | — |
| query.operators.kusto | #FF4500 | — |
| keyword.functions.kusto, keyword.functions.datetime.kusto, operator.table.kusto, keyword.types.kusto | #0000FF | — |
| keyword.other.kusto | #0000FF | — |
| operator.math.kusto, punctuation.kusto |
TypeScript sample highlighted with this variant's colors and tokenColors.
| #000000 |
| — |
| comment.kusto | #6A9955 | — |
| query.parameters.kusto | #2B91AF | — |
| string.quoted.double.kusto, string.quoted.single.kusto | #B22222 | — |
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}!`;
}
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}!`;
}