More changes to make lint happy

This commit is contained in:
Alexander Eyers-Taylor
2022-11-25 17:14:41 +00:00
parent ccf4fad912
commit a16366caae
3 changed files with 11 additions and 5 deletions

View File

@@ -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.");

View File

@@ -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;

View File

@@ -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;