We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b606f22 + 437946c commit 2ad4f35Copy full SHA for 2ad4f35
1 file changed
src/extension.ts
@@ -81,7 +81,7 @@ export function activate(context: vscode.ExtensionContext) {
81
82
repository.getCommit('HEAD').then((commit) => {
83
const treeOrBlob = filePath.length === 0 ? 'tree' : 'blob';
84
- const url = `${httpsUrl}/${treeOrBlob}/${commit.hash}/${filePath}`;
+ const url = `${httpsUrl}/${treeOrBlob}/${commit.hash}/${encodeURI(filePath)}`;
85
vscode.env.clipboard.writeText(url);
86
vscode.window.showInformationMessage(`"${url}" copied`, {
87
modal: false,
0 commit comments