Skip to content

Commit

Permalink
vscode.Uri.joinPath instead of Node's path.join (#108128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Kearl committed Oct 5, 2020
1 parent dda0e26 commit 5a5a51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/search-result/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function relativePathToUri(path: string, resultsUri: vscode.Uri): vscode.Uri | u
}

const uriFromFolderWithPath = (folder: vscode.WorkspaceFolder, path: string): vscode.Uri =>
folder.uri.with({ path: pathUtils.join(folder.uri.fsPath, path) });
vscode.Uri.joinPath(folder.uri, path);

if (vscode.workspace.workspaceFolders) {
const multiRootFormattedPath = /^(.*) • (.*)$/.exec(path);
Expand Down

0 comments on commit 5a5a51c

Please sign in to comment.