mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Remove cargo-watch from vscode extension.
Still keeps tests around for reference when porting them to rust
This commit is contained in:
parent
66e8ef53a0
commit
41a1ec723c
6 changed files with 1 additions and 454 deletions
|
@ -2,13 +2,8 @@ import * as vscode from 'vscode';
|
|||
import * as lc from 'vscode-languageclient';
|
||||
|
||||
import * as commands from './commands';
|
||||
import { CargoWatchProvider } from './commands/cargo_watch';
|
||||
import { ExpandMacroContentProvider } from './commands/expand_macro';
|
||||
import { HintsUpdater } from './commands/inlay_hints';
|
||||
import {
|
||||
interactivelyStartCargoWatch,
|
||||
startCargoWatch,
|
||||
} from './commands/runnables';
|
||||
import { SyntaxTreeContentProvider } from './commands/syntaxTree';
|
||||
import * as events from './events';
|
||||
import * as notifications from './notifications';
|
||||
|
@ -139,26 +134,6 @@ export async function activate(context: vscode.ExtensionContext) {
|
|||
|
||||
vscode.commands.registerCommand('rust-analyzer.reload', reloadCommand);
|
||||
|
||||
// Executing `cargo watch` provides us with inline diagnostics on save
|
||||
let provider: CargoWatchProvider | undefined;
|
||||
interactivelyStartCargoWatch(context).then(p => {
|
||||
provider = p;
|
||||
});
|
||||
registerCommand('rust-analyzer.startCargoWatch', () => {
|
||||
if (provider) {
|
||||
provider.start();
|
||||
} else {
|
||||
startCargoWatch(context).then(p => {
|
||||
provider = p;
|
||||
});
|
||||
}
|
||||
});
|
||||
registerCommand('rust-analyzer.stopCargoWatch', () => {
|
||||
if (provider) {
|
||||
provider.stop();
|
||||
}
|
||||
});
|
||||
|
||||
// Start the language server, finally!
|
||||
try {
|
||||
await startServer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue