Skip to content
This repository was archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
fix: refresh diagnostic not work
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Apr 9, 2020
1 parent 7309b0c commit f8e8e70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/language/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { ModuleResolver } from "../../../core/module_resolver";
import { pathExists, isHttpURL, isValidDenoDocument } from "../../../core/util";
import { ImportMap } from "../../../core/import_map";
import { getImportModules, Range } from "../../../core/deno_deps";
import { Notification } from "../../../core/const";

type Fix = {
title: string;
Expand Down Expand Up @@ -100,7 +101,7 @@ export class Diagnostics {
return actions;
});

connection.onNotification("updateDiagnostic", (uri: string) => {
connection.onNotification(Notification.diagnostic, (uri: string) => {
const document = this.documents.get(uri);
document && this.diagnosis(document);
});
Expand Down

0 comments on commit f8e8e70

Please # to comment.