Skip to content

Commit 588b14b

Browse files
committed
normalize path
1 parent a1323ff commit 588b14b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/vs/workbench/api/node/extHostWorkspace.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'use strict';
66

77
import URI from 'vs/base/common/uri';
8-
// import { relative, isEqualOrParent } from 'vs/base/common/paths';
8+
import { normalize } from 'vs/base/common/paths';
99
import { relative } from 'path';
1010
import { IThreadService } from 'vs/workbench/services/thread/common/threadService';
1111
import { IResourceEdit } from 'vs/editor/common/services/bulkEdit';
@@ -40,15 +40,15 @@ export class ExtHostWorkspace {
4040
}
4141

4242
if (!path || !this._workspacePath) {
43-
return path;
43+
return normalize(path);
4444
}
4545

4646
let result = relative(this._workspacePath, path);
4747
if (!result || result.indexOf('..') === 0) {
48-
return path;
48+
return normalize(path);
4949
}
5050

51-
return result;
51+
return normalize(result);
5252
}
5353

5454
findFiles(include: string, exclude: string, maxResults?: number, token?: vscode.CancellationToken): Thenable<vscode.Uri[]> {

0 commit comments

Comments
 (0)