Remove VS Code project file change watchers

Updating projects should be handled by the `projectsUpdatedInBackground events` now
This commit is contained in:
Matt Bierner 2020-02-06 11:19:12 -08:00
parent 9a74df8b7c
commit 5d3c86ad99

View file

@ -55,18 +55,6 @@ export default class TypeScriptServiceClientHost extends Disposable {
onCompletionAccepted: (item: vscode.CompletionItem) => void,
) {
super();
const handleProjectCreateOrDelete = () => {
this.triggerAllDiagnostics();
};
const handleProjectChange = () => {
setTimeout(() => {
this.triggerAllDiagnostics();
}, 1500);
};
const configFileWatcher = this._register(vscode.workspace.createFileSystemWatcher('**/[tj]sconfig.json'));
configFileWatcher.onDidCreate(handleProjectCreateOrDelete, this, this._disposables);
configFileWatcher.onDidDelete(handleProjectCreateOrDelete, this, this._disposables);
configFileWatcher.onDidChange(handleProjectChange, this, this._disposables);
const allModeIds = this.getAllModeIds(descriptions, pluginManager);
this.client = this._register(new TypeScriptServiceClient(