Improve cargo-watch usage

This commit is contained in:
Edwin Cheng 2019-03-31 20:00:50 +08:00
parent c2912892ef
commit b3683df0cd
4 changed files with 177 additions and 36 deletions

View file

@ -2,7 +2,7 @@ import * as vscode from 'vscode';
import * as lc from 'vscode-languageclient';
import * as commands from './commands';
import { interactivelyStartCargoWatch } from './commands/runnables';
import { interactivelyStartCargoWatch} from './commands/runnables';
import { SyntaxTreeContentProvider } from './commands/syntaxTree';
import * as events from './events';
import * as notifications from './notifications';
@ -121,7 +121,7 @@ export function activate(context: vscode.ExtensionContext) {
);
// Executing `cargo watch` provides us with inline diagnostics on save
interactivelyStartCargoWatch();
interactivelyStartCargoWatch(context);
// Start the language server, finally!
Server.start(allNotifications);