From 0b00c740673b43a9e66abaacb88b0b78ff1e98f3 Mon Sep 17 00:00:00 2001 From: Brett Saviano Date: Thu, 3 Oct 2024 13:10:56 -0400 Subject: [PATCH] Use more granular symbols for class members (#1442) --- src/providers/WorkspaceSymbolProvider.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/providers/WorkspaceSymbolProvider.ts b/src/providers/WorkspaceSymbolProvider.ts index 824434a5..ee8126d0 100644 --- a/src/providers/WorkspaceSymbolProvider.ts +++ b/src/providers/WorkspaceSymbolProvider.ts @@ -38,19 +38,28 @@ export class WorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvider { for (const element of data.result.content) { const kind: vscode.SymbolKind = (() => { switch (element.Type) { - case "Query": case "Method": return vscode.SymbolKind.Method; + case "Query": + return vscode.SymbolKind.Function; + case "Trigger": + return vscode.SymbolKind.Event; case "Parameter": return vscode.SymbolKind.Constant; case "Index": + return vscode.SymbolKind.Array; + case "ForeignKey": return vscode.SymbolKind.Key; case "XData": - case "Storage": return vscode.SymbolKind.Struct; + case "Storage": + return vscode.SymbolKind.Object; + case "Projection": + return vscode.SymbolKind.Interface; case "Class": return vscode.SymbolKind.Class; default: + // Property and Relationship return vscode.SymbolKind.Property; } })();