Skip to content

Commit a56905b

Browse files
committed
Use decodeURIComponent instead of decodeUri
This is not actually a uri
1 parent e0598cb commit a56905b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/markdown-language-features/src/features/pathCompletions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class PathCompletionProvider implements vscode.CompletionItemProvider {
237237
const replacementRange = new vscode.Range(insertionRange.start, position.translate({ characterDelta: context.linkSuffix.length }));
238238
yield {
239239
kind: vscode.CompletionItemKind.Reference,
240-
label: '#' + decodeURI(entry.slug.value),
240+
label: '#' + decodeURIComponent(entry.slug.value),
241241
range: {
242242
inserting: insertionRange,
243243
replacing: replacementRange,

0 commit comments

Comments
 (0)