use fspath instead of path

This commit is contained in:
kieferrm
2017-01-23 13:39:29 -08:00
parent b8390826ea
commit 0c2148239a
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ class TrustContribution implements IWorkbenchContribution {
private updateUserSettings(): TPromise<void> {
const key = 'security.workspacesTrustedToSpecifyExecutables';
const path = this.workspaceContextService.getWorkspace().resource.path;
const path = this.workspaceContextService.getWorkspace().resource.fsPath;
const value = this.configurationService.lookup(key).user || {};
value[path] = true;

View File

@@ -51,7 +51,7 @@ export class WorkspaceTrust implements IWorkspaceTrust {
public isTrusted(): boolean {
let workspace = this.contextService.getWorkspace();
if (workspace) {
let path = workspace.resource.path;
let path = workspace.resource.fsPath;
let securityConfiguration = this.baseConfigurationService.getConfiguration<ISecurityConfiguration>();
let whiteList = securityConfiguration.security.workspacesTrustedToSpecifyExecutables;
return whiteList && whiteList[path];