Skip to content

Commit ab35fd6

Browse files
authored
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.
1 parent 7f7b53a commit ab35fd6

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
@@ -236,6 +236,8 @@ export class AngularLanguageClient implements vscode.Disposable {
236236
this.outputChannel.clear();
237237
this.dispose();
238238
this.client = null;
239+
this.fileToIsInAngularProjectMap.clear();
240+
this.virtualDocumentContents.clear();
239241
}
240242

241243
/**

0 commit comments

Comments
 (0)