Skip to content

Commit a16366c

Browse files
author
Alexander Eyers-Taylor
committed
More changes to make lint happy
1 parent ccf4fad commit a16366c

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

extensions/ql-vscode/src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,9 +1424,9 @@ async function activateWithInstalledDistribution(
14241424
void logger.log("Starting language server.");
14251425
await client.start();
14261426
ctx.subscriptions.push({
1427-
dispose: () => {
1428-
void client.stop();
1429-
}
1427+
dispose: () => {
1428+
void client.stop();
1429+
},
14301430
});
14311431
// Jump-to-definition and find-references
14321432
void logger.log("Registering jump-to-definition handlers.");

extensions/ql-vscode/src/legacy-query-server/run-queries.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,10 @@ export async function compileAndRunQueryAgainstDatabase(
480480
try {
481481
errors = await query.compile(qs, qlProgram, progress, token);
482482
} catch (e) {
483-
if (e instanceof ResponseError && e.code == LSPErrorCodes.RequestCancelled) {
483+
if (
484+
e instanceof ResponseError &&
485+
e.code == LSPErrorCodes.RequestCancelled
486+
) {
484487
return createSyntheticResult(query, "Query cancelled");
485488
} else {
486489
throw e;

extensions/ql-vscode/src/quick-query.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ export async function displayQuickQuery(
148148

149149
await Window.showTextDocument(await workspace.openTextDocument(qlFile));
150150
} catch (e) {
151-
if (e instanceof ResponseError && e.code == LSPErrorCodes.RequestCancelled) {
151+
if (
152+
e instanceof ResponseError &&
153+
e.code == LSPErrorCodes.RequestCancelled
154+
) {
152155
throw new UserCancellationException(getErrorMessage(e));
153156
} else {
154157
throw e;

0 commit comments

Comments
 (0)