Skip to content

Commit 0915638

Browse files
Merge pull request #270 from gjsjohnmurray/fix-269
fix #269 Server-side search of isfs folder using proposed API failed when using Server Manager connection
2 parents 5461870 + 047ba23 commit 0915638

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class AtelierAPI {
172172
} = getResolvedConnectionSpec(serverName, config("intersystems.servers", workspaceFolderName).get(serverName));
173173
this._config = {
174174
active: this.externalServer || conn.active,
175-
apiVersion: 1,
175+
apiVersion: workspaceState.get(this.configName + ":apiVersion", DEFAULT_API_VERSION),
176176
https: scheme === "https",
177177
ns: namespace || conn.ns,
178178
host,

src/providers/FileSystemPovider/TextSearchProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class TextSearchProvider implements vscode.TextSearchProvider {
1717
progress: vscode.Progress<vscode.TextSearchResult>,
1818
token: vscode.CancellationToken
1919
): vscode.ProviderResult<vscode.TextSearchComplete> {
20-
const api = new AtelierAPI();
20+
const api = new AtelierAPI(options.folder);
2121
let counter = 0;
2222
if (!api.enabled) {
2323
return null;

0 commit comments

Comments
 (0)