From 556410c703da2514a5e57302ca720e54a045558c Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Tue, 25 Oct 2016 14:50:46 +0200 Subject: [PATCH] Freezes when Chrome generates userDataDir in workspace (fixes #14301) --- .../services/configuration/node/configurationService.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/services/configuration/node/configurationService.ts b/src/vs/workbench/services/configuration/node/configurationService.ts index 47b11bd9344..85fdda3659f 100644 --- a/src/vs/workbench/services/configuration/node/configurationService.ts +++ b/src/vs/workbench/services/configuration/node/configurationService.ts @@ -212,7 +212,10 @@ export class WorkspaceConfigurationService implements IWorkspaceConfigurationSer } // outside my folder or not a *.json file - if (paths.extname(workspacePath) !== '.json' || !paths.isEqualOrParent(workspacePath, this.workspaceSettingsRootFolder)) { + if ( + paths.extname(workspacePath) !== '.json' || // we only care about *.json files + paths.dirname(workspacePath) !== this.workspaceSettingsRootFolder // which are top level in .vscode + ) { continue; } -- GitLab