Archived
1
0

Don't error when scanning nonexistent extension dir

This commit is contained in:
Asher
2019-08-20 19:16:44 -05:00
parent b9fc40409a
commit 534600c1ff
2 changed files with 18 additions and 3 deletions

View File

@ -481,6 +481,8 @@ export class MainServer extends Server {
util.promisify(fs.readFile)(filePath, "utf8"),
this.servicesPromise,
]);
const logger = this.services.get(ILogService) as ILogService;
logger.info("request.url", `"${request.url}"`);
const environment = this.services.get(IEnvironmentService) as IEnvironmentService;
const locale = environment.args.locale || await getLocaleFromConfig(environment.userDataPath);
const cwd = process.env.VSCODE_CWD || process.cwd();