we don't support commands in our markdown documentation for completion, so just remove it entirely

Tested in a cshtml and .razor file:

CSharp completion
HTML completion (links to MDN still work)
Razor completion
This commit is contained in:
Andrew Hall 2023-07-06 16:04:41 -07:00 коммит произвёл Andrew Hall (METAL)
Родитель b0fd3e3ac4
Коммит 3c0b894df0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -48,7 +48,7 @@ export class RazorCompletionItemProvider
if (doc) {
// Without this, the documentation doesn't get rendered in the editor.
const newDoc = new vscode.MarkdownString(doc.value);
newDoc.isTrusted = doc.isTrusted;
newDoc.isTrusted = false;
completionItem.documentation = newDoc;
}