Skip to content

Commit 2f8069c

Browse files
committed
Fix code navigation features to be more robust to concurrent requests
1 parent a8d579a commit 2f8069c

8 files changed

Lines changed: 237 additions & 113 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.88.3]
4+
5+
* Fix code navigation features to be more robust to concurrent requests
6+
37
## [0.88.2]
48

59
* Improve Logtalk terminal process termination to use escalating signals to avoid orphans in case of busy and non-responding processes

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "logtalk-for-vscode",
33
"displayName": "Logtalk for VSCode",
44
"description": "Logtalk programming support",
5-
"version": "0.88.2",
5+
"version": "0.88.3",
66
"publisher": "LogtalkDotOrg",
77
"icon": "images/logtalk.png",
88
"license": "MIT",
@@ -1332,7 +1332,7 @@
13321332
"compile": "tsc -watch -p ./",
13331333
"test": "tsc ./tests/runTest.ts",
13341334
"vsix:make": "vsce package --baseImagesUrl https://raw.githubusercontent.com/llvm/llvm-project/master/clang-tools-extra/clangd/clients/clangd-vscode/",
1335-
"vsix:install": "code --install-extension logtalk-for-vscode-0.88.2.vsix"
1335+
"vsix:install": "code --install-extension logtalk-for-vscode-0.88.3.vsix"
13361336
},
13371337
"devDependencies": {
13381338
"@types/bluebird": "^3.5.38",

src/features/declarationProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class LogtalkDeclarationProvider implements DeclarationProvider {
6262
return null;
6363
}
6464

65-
await LogtalkTerminal.getDeclaration(doc, position, call);
65+
await LogtalkTerminal.getDeclaration(doc, position, call, token);
6666

6767
let location: Location = null;
6868
const dir = LogtalkTerminal.getWorkspaceFolderForUri(doc.uri);

src/features/definitionProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export class LogtalkDefinitionProvider implements DefinitionProvider {
245245
return null;
246246
}
247247

248-
await LogtalkTerminal.getDefinition(doc, position, call);
248+
await LogtalkTerminal.getDefinition(doc, position, call, token);
249249

250250
let location: Location = null;
251251
const dir = LogtalkTerminal.getWorkspaceFolderForUri(doc.uri);

src/features/implementationProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class LogtalkImplementationProvider implements ImplementationProvider {
6868
return null;
6969
}
7070

71-
await LogtalkTerminal.getImplementations(doc, position, resource);
71+
await LogtalkTerminal.getImplementations(doc, position, resource, token);
7272

7373
let locations: Location[] = [];
7474
const dir = LogtalkTerminal.getWorkspaceFolderForUri(doc.uri);

src/features/referenceProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class LogtalkReferenceProvider implements ReferenceProvider {
6868
return null;
6969
}
7070

71-
await LogtalkTerminal.getReferences(doc, position, resource);
71+
await LogtalkTerminal.getReferences(doc, position, resource, token);
7272

7373
let locations: Location[] = [];
7474
const dir = LogtalkTerminal.getWorkspaceFolderForUri(doc.uri);

0 commit comments

Comments
 (0)