@@ -5,7 +5,7 @@ import { filesystemSchemas } from "../extension";
5
5
import { fileSpecFromURI } from "../utils/FileProviderUtil" ;
6
6
7
7
export class WorkspaceSymbolProvider implements vscode . WorkspaceSymbolProvider {
8
- private readonly _sqlPreifx : string =
8
+ private readonly _sqlPrefix : string =
9
9
"SELECT mem.Name, mem.Parent, mem.Type FROM (" +
10
10
" SELECT Name, Name AS Parent, 'Class' AS Type FROM %Dictionary.ClassDefinition" +
11
11
" UNION SELECT Name, Parent->ID AS Parent, 'Method' AS Type FROM %Dictionary.MethodDefinition" +
@@ -105,7 +105,7 @@ export class WorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvider {
105
105
if ( ! api . active || token . isCancellationRequested ) return Promise . resolve ( [ ] ) ;
106
106
const project = params . get ( "project" ) ?? "" ;
107
107
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 } ` , [
109
109
project . length ? project : fileSpecFromURI ( wsFolder . uri ) ,
110
110
params . has ( "system" ) && params . get ( "system" ) . length
111
111
? params . get ( "system" )
@@ -123,7 +123,7 @@ export class WorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvider {
123
123
const api = new AtelierAPI ( wsFolder . uri ) ;
124
124
if ( ! api . active || token . isCancellationRequested ) return Promise . resolve ( [ ] ) ;
125
125
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 ] )
127
127
. then ( ( data ) => ( token . isCancellationRequested ? [ ] : this . _queryResultToSymbols ( data , wsFolder ) ) ) ;
128
128
}
129
129
} )
0 commit comments