string literal does not work with status bar item [background] color (fix #111687)

This commit is contained in:
Benjamin Pasero 2020-12-02 17:23:57 +01:00
parent d758a74bf7
commit df2c328e59

View file

@ -2307,12 +2307,12 @@ declare module 'vscode' {
/** /**
* The background color for this entry. * The background color for this entry.
* *
* Note: the supported colors for background are currently limited to * Note: only `new ThemeColor('statusBarItem.errorBackground')` is
* `ThemeColors` with id `statusBarItem.errorBackground`. Other `ThemeColors` * supported for now. More background colors may be supported in the
* will be ignored. * future.
* *
* When setting the background color to `statusBarItem.errorBackground`, the * Note: when a background color is set, the statusbar may override
* `color` property will automatically be set to `statusBarItem.errorForeground`. * the `color` choice to ensure the entry is readable in all themes.
*/ */
backgroundColor: ThemeColor | undefined; backgroundColor: ThemeColor | undefined;
} }