Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Commit: a81c3b045dde741a05c8f8365c47d4207a5fc1a6
  • Loading branch information
Johannes Rieken authored and sourcegraph-bot committed Jan 24, 2022
1 parent 0725594 commit c2f2e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode/src/vs/editor/browser/services/openerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ export class OpenerService implements IOpenerService {
// open the url-string AS IS
href = resource;
} else {
// open URI using the toString(noEncode)+encodeURI-trick
href = encodeURI(externalUri.toString(true));
// open URI via "new URL(...).href encoding"
href = new URL(externalUri.toString(true)).href;
}

if (options?.allowContributedOpeners) {
Expand Down

0 comments on commit c2f2e22

Please sign in to comment.