mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
launch.json shows stale warnings after deleting/closing. Fixes #23726
This commit is contained in:
@@ -276,6 +276,12 @@ connection.onDidChangeWatchedFiles((change) => {
|
||||
});
|
||||
|
||||
let jsonDocuments = getLanguageModelCache<JSONDocument>(10, 60, document => languageService.parseJSONDocument(document));
|
||||
documents.onDidClose(e => {
|
||||
jsonDocuments.onDocumentRemoved(e.document);
|
||||
});
|
||||
connection.onShutdown(() => {
|
||||
jsonDocuments.dispose();
|
||||
});
|
||||
|
||||
function getJSONDocument(document: TextDocument): JSONDocument {
|
||||
return jsonDocuments.get(document);
|
||||
|
||||
Reference in New Issue
Block a user