Skip to content

Commit

Permalink
vscode: fix MarkdownString for documentation (#12685)
Browse files Browse the repository at this point in the history
The commit fixes the conversion of `MarkdownString` which failed to render previously.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Jul 25, 2023
1 parent 2b4fb4b commit 8542447
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/plugin-ext/src/plugin/languages/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,17 @@ export class CompletionAdapter {
? [CompletionItemTag.Deprecated]
: undefined;

const documentation = typeof item.documentation !== 'undefined'
? Converter.fromMarkdown(item.documentation)
: undefined;

return {
id,
parentId,
label: item.label,
kind: Converter.fromCompletionItemKind(item.kind),
detail: item.detail,
documentation: item.documentation,
documentation,
filterText: item.filterText,
sortText: item.sortText,
preselect: item.preselect,
Expand Down

0 comments on commit 8542447

Please sign in to comment.