mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Improve cargo-watch usage
This commit is contained in:
parent
c2912892ef
commit
b3683df0cd
4 changed files with 177 additions and 36 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue