Skip to content

Commit 8542447

Browse files
vscode: fix MarkdownString for documentation (#12685)
The commit fixes the conversion of `MarkdownString` which failed to render previously. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
1 parent 2b4fb4b commit 8542447

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/plugin-ext/src/plugin/languages/completion.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,17 @@ export class CompletionAdapter {
153153
? [CompletionItemTag.Deprecated]
154154
: undefined;
155155

156+
const documentation = typeof item.documentation !== 'undefined'
157+
? Converter.fromMarkdown(item.documentation)
158+
: undefined;
159+
156160
return {
157161
id,
158162
parentId,
159163
label: item.label,
160164
kind: Converter.fromCompletionItemKind(item.kind),
161165
detail: item.detail,
162-
documentation: item.documentation,
166+
documentation,
163167
filterText: item.filterText,
164168
sortText: item.sortText,
165169
preselect: item.preselect,

0 commit comments

Comments
 (0)