Skip to content

Commit

Permalink
Use more granular symbols for class members
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano committed Oct 3, 2024
1 parent bf5c53d commit 328ccb0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/providers/WorkspaceSymbolProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,27 @@ 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:
default: // Property and Relationship

Check failure on line 61 in src/providers/WorkspaceSymbolProvider.ts

View workflow job for this annotation

GitHub Actions / build

Insert `⏎···········`
return vscode.SymbolKind.Property;
}
})();
Expand Down

0 comments on commit 328ccb0

Please sign in to comment.