relax supportThemeIcons

This commit is contained in:
Johannes Rieken 2021-06-16 14:53:25 +02:00
parent b5da2d0f10
commit 16facd8645
No known key found for this signature in database
GPG key ID: 96634B5AF12F8798
2 changed files with 7 additions and 3 deletions

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

@ -2569,8 +2569,8 @@ declare module 'vscode' {
* The MarkdownString represents human-readable text that supports formatting via the
* markdown syntax. Standard markdown is supported, also tables, but no embedded html.
*
* When created with `supportThemeIcons` then rendering of {@link ThemeIcon theme icons} via
* the `$(<name>)`-syntax is supported.
* Rendering of {@link ThemeIcon theme icons} via the `$(<name>)`-syntax is supported
* when the {@link MarkdownString.supportThemeIcons `supportThemeIcons`} is set to `true`.
*/
export class MarkdownString {
@ -2588,7 +2588,7 @@ declare module 'vscode' {
/**
* Indicates that this markdown string can contain {@link ThemeIcon ThemeIcons}, e.g. `$(zap)`.
*/
readonly supportThemeIcons?: boolean;
supportThemeIcons?: boolean;
/**
* Creates a new markdown string with the given value.

View file

@ -1332,6 +1332,10 @@ export class MarkdownString implements vscode.MarkdownString {
return this.#delegate.supportThemeIcons;
}
set supportThemeIcons(value: boolean | undefined) {
this.#delegate.supportThemeIcons = value;
}
appendText(value: string): vscode.MarkdownString {
this.#delegate.appendText(value);
return this;