Skip to content

Commit

Permalink
Fixes #50763: All running Visual Studio code instances shutdown all a…
Browse files Browse the repository at this point in the history
…t once
  • Loading branch information
dbaeumer committed Jun 1, 2018
1 parent f7f2911 commit b676497
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b676497

Please sign in to comment.