Skip to content

Commit 80b4b1b

Browse files
committed
Update WorkspaceSymbolProvider.ts
1 parent a5276e9 commit 80b4b1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/providers/WorkspaceSymbolProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { filesystemSchemas } from "../extension";
55
import { fileSpecFromURI } from "../utils/FileProviderUtil";
66

77
export class WorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvider {
8-
private readonly _sqlPreifx: string =
8+
private readonly _sqlPrefix: string =
99
"SELECT mem.Name, mem.Parent, mem.Type FROM (" +
1010
" SELECT Name, Name AS Parent, 'Class' AS Type FROM %Dictionary.ClassDefinition" +
1111
" UNION SELECT Name, Parent->ID AS Parent, 'Method' AS Type FROM %Dictionary.MethodDefinition" +
@@ -105,7 +105,7 @@ export class WorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvider {
105105
if (!api.active || token.isCancellationRequested) return Promise.resolve([]);
106106
const project = params.get("project") ?? "";
107107
return api
108-
.actionQuery(`${this._sqlPreifx}${project.length ? this._sqlPrj : this._sqlDocs}${this._sqlSuffix}`, [
108+
.actionQuery(`${this._sqlPrefix}${project.length ? this._sqlPrj : this._sqlDocs}${this._sqlSuffix}`, [
109109
project.length ? project : fileSpecFromURI(wsFolder.uri),
110110
params.has("system") && params.get("system").length
111111
? params.get("system")
@@ -123,7 +123,7 @@ export class WorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvider {
123123
const api = new AtelierAPI(wsFolder.uri);
124124
if (!api.active || token.isCancellationRequested) return Promise.resolve([]);
125125
return api
126-
.actionQuery(`${this._sqlPreifx}${this._sqlDocs}${this._sqlSuffix}`, ["*.cls", "0", "0", "1", pattern])
126+
.actionQuery(`${this._sqlPrefix}${this._sqlDocs}${this._sqlSuffix}`, ["*.cls", "0", "0", "1", pattern])
127127
.then((data) => (token.isCancellationRequested ? [] : this._queryResultToSymbols(data, wsFolder)));
128128
}
129129
})

0 commit comments

Comments
 (0)