提交 b6764974 编写于 作者: D Dirk Baeumer

Fixes #50763: All running Visual Studio code instances shutdown all at once

上级 f7f2911e
...@@ -66,9 +66,13 @@ export class LanguagePackCachedDataCleaner { ...@@ -66,9 +66,13 @@ export class LanguagePackCachedDataCleaner {
} }
// Cleanup entries for language packs that aren't installed anymore // Cleanup entries for language packs that aren't installed anymore
const cacheDir = path.join(this._environmentService.userDataPath, 'clp'); 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)) { for (let entry of await pfs.readdir(cacheDir)) {
if (installed[entry]) { 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; continue;
} }
this._logService.info('Removing unused language pack:', entry); this._logService.info('Removing unused language pack:', entry);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册