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.
*
* Note: the supported colors for background are currently limited to
* `ThemeColors` with id `statusBarItem.errorBackground`. Other `ThemeColors`
* will be ignored.
* Note: only `new ThemeColor('statusBarItem.errorBackground')` is
* supported for now. More background colors may be supported in the
* future.
*
* When setting the background color to `statusBarItem.errorBackground`, the
* `color` property will automatically be set to `statusBarItem.errorForeground`.
* Note: when a background color is set, the statusbar may override
* the `color` choice to ensure the entry is readable in all themes.
*/
backgroundColor: ThemeColor | undefined;
}