Skip to content

Commit

Permalink
[VSCode] Skip path URI encoding (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew authored Sep 15, 2024
1 parent 3eb69ad commit f824c22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/open-collaboration-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "open-collaboration-tools",
"displayName": "Open Collaboration Tools",
"description": "Connect with others and live-share your code in real-time collaboration sessions",
"version": "0.2.3",
"version": "0.2.4",
"publisher": "typefox",
"categories": [
"Other"
Expand Down
4 changes: 2 additions & 2 deletions packages/open-collaboration-vscode/src/utils/uri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export namespace CollaborationUri {
if (!uri) {
return undefined;
}
const path = uri.toString();
const path = uri.toString(true);
const roots = (vscode.workspace.workspaceFolders ?? []);
for (const root of roots) {
const rootUri = root.uri.toString() + '/';
const rootUri = root.uri.toString(true) + '/';
if (path.startsWith(rootUri)) {
return root.name + '/' + path.substring(rootUri.length);
}
Expand Down

0 comments on commit f824c22

Please sign in to comment.