mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-04 19:35:46 +01:00
Fixes #50763: All running Visual Studio code instances shutdown all at once
This commit is contained in:
@@ -66,9 +66,13 @@ export class LanguagePackCachedDataCleaner {
|
||||
}
|
||||
// Cleanup entries for language packs that aren't installed anymore
|
||||
const cacheDir = path.join(this._environmentService.userDataPath, 'clp');
|
||||
let exists = await pfs.exists(cacheDir);
|
||||
if (!exists) {
|
||||
return;
|
||||
}
|
||||
for (let entry of await pfs.readdir(cacheDir)) {
|
||||
if (installed[entry]) {
|
||||
this._logService.info(`Skipping directory ${entry}. Language pack still in use`);
|
||||
this._logService.info(`Skipping directory ${entry}. Language pack still in use.`);
|
||||
continue;
|
||||
}
|
||||
this._logService.info('Removing unused language pack:', entry);
|
||||
|
||||
Reference in New Issue
Block a user