Skip to content

Commit e476f7e

Browse files
committed
refactor: clear client caches on stop request (#1374)
The command to restart the language server calls `client.stop` followed by `client.start`. We should clear the caches so that the restart command starts with a clean state. (cherry picked from commit ab35fd6)
1 parent d602cf9 commit e476f7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ export class AngularLanguageClient implements vscode.Disposable {
220220
this.outputChannel.clear();
221221
this.dispose();
222222
this.client = null;
223+
this.fileToIsInAngularProjectMap.clear();
224+
this.virtualDocumentContents.clear();
223225
}
224226

225227
/**

0 commit comments

Comments
 (0)