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:
parent
3e89dc7c2b
commit
79966bbfd2
1 changed files with 3 additions and 3 deletions
6
src/vs/vscode.d.ts
vendored
6
src/vs/vscode.d.ts
vendored
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue