Skip to content

Commit 2363668

Browse files
committed
Don't encode label for md path completions
For microsoft#142838
1 parent a56905b commit 2363668

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ export class PathCompletionProvider implements vscode.CompletionItemProvider {
275275

276276
const isDir = type === vscode.FileType.Directory;
277277
yield {
278-
label: isDir ? encodeURIComponent(name) + '/' : encodeURIComponent(name),
278+
label: isDir ? name + '/' : name,
279+
insertText: isDir ? encodeURIComponent(name) + '/' : encodeURIComponent(name),
279280
kind: isDir ? vscode.CompletionItemKind.Folder : vscode.CompletionItemKind.File,
280281
range: {
281282
inserting: insertRange,

0 commit comments

Comments
 (0)