Use Array<MarkedString | MarkdownString>

This better matches the existing behavior, even if it makes MarkedString's deprecation a bit less clear
This commit is contained in:
Matt Bierner 2021-06-16 12:48:22 -07:00
parent 3e89dc7c2b
commit 79966bbfd2
No known key found for this signature in database
GPG key ID: 099C331567E11888

6
src/vs/vscode.d.ts vendored
View file

@ -1055,7 +1055,7 @@ declare module 'vscode' {
/**
* A message that should be rendered when hovering over the decoration.
*/
hoverMessage?: MarkdownString | (MarkdownString | MarkedString)[] | MarkedString;
hoverMessage?: MarkdownString | MarkedString | Array<MarkdownString | MarkedString>;
/**
* Render options applied to the current decoration. For performance reasons, keep the
@ -2635,7 +2635,7 @@ declare module 'vscode' {
/**
* The contents of this hover.
*/
contents: (MarkdownString | MarkedString)[];
contents: Array<MarkdownString | MarkedString>;
/**
* The range to which this hover applies. When missing, the
@ -2650,7 +2650,7 @@ declare module 'vscode' {
* @param contents The contents of the hover.
* @param range The range to which the hover applies.
*/
constructor(contents: MarkdownString | (MarkdownString | MarkedString)[] | MarkedString, range?: Range);
constructor(contents: MarkdownString | MarkedString | Array<MarkdownString | MarkedString>, range?: Range);
}
/**