Skip to content

Instantly share code, notes, and snippets.

@Xanewok
Created July 7, 2017 19:16
Show Gist options
  • Save Xanewok/290a46ee20b933f5daf4cd2f7acac291 to your computer and use it in GitHub Desktop.
Save Xanewok/290a46ee20b933f5daf4cd2f7acac291 to your computer and use it in GitHub Desktop.
diff --git a/src/extension.ts b/src/extension.ts
index c4a6301..d7920f1 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -112,11 +112,10 @@ export function activate(context: ExtensionContext) {
// Create the language client and start the client.
let lc = new LanguageClient('Rust Language Server', serverOptions, clientOptions);
+ lcOutputChannel = lc.outputChannel;
let runningDiagnostics = new Counter();
lc.onReady().then(() => {
- lcOutputChannel = lc.outputChannel;
-
lc.onNotification(new NotificationType('rustDocument/diagnosticsBegin'), function(f) {
runningDiagnostics.increment();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment