More changes to make lint happy
This commit is contained in:
@@ -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.");
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user