mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Allow CompletionItem#documention to be also a MarkdownString, #11877
Update internal api, update rendering of suggestion details, tweak shared renderer
This commit is contained in:
@@ -354,7 +354,7 @@ export namespace Suggest {
|
||||
result.insertText = suggestion.insertText;
|
||||
result.kind = CompletionItemKind.to(suggestion.type);
|
||||
result.detail = suggestion.detail;
|
||||
result.documentation = suggestion.documentation;
|
||||
result.documentation = typeof suggestion.documentation === 'string' ? suggestion.documentation : MarkdownString.to(suggestion.documentation);
|
||||
result.sortText = suggestion.sortText;
|
||||
result.filterText = suggestion.filterText;
|
||||
|
||||
|
||||
@@ -892,7 +892,7 @@ export class CompletionItem {
|
||||
label: string;
|
||||
kind: CompletionItemKind;
|
||||
detail: string;
|
||||
documentation: string;
|
||||
documentation: string | vscode.MarkdownString;
|
||||
sortText: string;
|
||||
filterText: string;
|
||||
insertText: string | SnippetString;
|
||||
|
||||
Reference in New Issue
Block a user