Skip to content

Commit

Permalink
More changes to make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexet committed Nov 25, 2022
1 parent ccf4fad commit a16366c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions extensions/ql-vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1424,9 +1424,9 @@ async function activateWithInstalledDistribution(
void logger.log("Starting language server.");
await client.start();
ctx.subscriptions.push({
dispose: () => {
void client.stop();
}
dispose: () => {
void client.stop();
},
});
// Jump-to-definition and find-references
void logger.log("Registering jump-to-definition handlers.");
Expand Down
5 changes: 4 additions & 1 deletion extensions/ql-vscode/src/legacy-query-server/run-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,10 @@ export async function compileAndRunQueryAgainstDatabase(
try {
errors = await query.compile(qs, qlProgram, progress, token);
} catch (e) {
if (e instanceof ResponseError && e.code == LSPErrorCodes.RequestCancelled) {
if (
e instanceof ResponseError &&
e.code == LSPErrorCodes.RequestCancelled
) {
return createSyntheticResult(query, "Query cancelled");
} else {
throw e;
Expand Down
5 changes: 4 additions & 1 deletion extensions/ql-vscode/src/quick-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ export async function displayQuickQuery(

await Window.showTextDocument(await workspace.openTextDocument(qlFile));
} catch (e) {
if (e instanceof ResponseError && e.code == LSPErrorCodes.RequestCancelled) {
if (
e instanceof ResponseError &&
e.code == LSPErrorCodes.RequestCancelled
) {
throw new UserCancellationException(getErrorMessage(e));
} else {
throw e;
Expand Down

0 comments on commit a16366c

Please sign in to comment.