mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
extract MarkdownString from MarkedString type, fyi @mjvbz
This commit is contained in:
@@ -52,7 +52,7 @@ class TypeScriptHoverProvider implements vscode.HoverProvider {
|
||||
data: Proto.QuickInfoResponseBody,
|
||||
source: ServerType | undefined,
|
||||
) {
|
||||
const parts: vscode.MarkedString[] = [];
|
||||
const parts: vscode.MarkdownString[] = [];
|
||||
|
||||
if (data.displayString) {
|
||||
const displayParts: string[] = [];
|
||||
@@ -66,8 +66,7 @@ class TypeScriptHoverProvider implements vscode.HoverProvider {
|
||||
}
|
||||
|
||||
displayParts.push(data.displayString);
|
||||
|
||||
parts.push({ language: 'typescript', value: displayParts.join(' ') });
|
||||
parts.push(new vscode.MarkdownString().appendCodeblock(displayParts.join(' '), 'typescript'));
|
||||
}
|
||||
parts.push(markdownDocumentation(data.documentation, data.tags, this.client));
|
||||
return parts;
|
||||
|
||||
Reference in New Issue
Block a user