mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 20:43:31 +01:00
simplify map creation, fyi @bpasero
This commit is contained in:
@@ -14,14 +14,9 @@ import { DisposableStore } from 'vs/base/common/lifecycle';
|
|||||||
export class ExtHostStatusBarEntry implements vscode.StatusBarItem {
|
export class ExtHostStatusBarEntry implements vscode.StatusBarItem {
|
||||||
private static ID_GEN = 0;
|
private static ID_GEN = 0;
|
||||||
|
|
||||||
private static ALLOWED_BACKGROUND_COLORS = (() => {
|
private static ALLOWED_BACKGROUND_COLORS = new Map<string, ThemeColor>(
|
||||||
const map = new Map<string, ThemeColor>();
|
[['statusBarItem.errorBackground', new ThemeColor('statusBarItem.errorForeground')]]
|
||||||
|
);
|
||||||
// https://github.com/microsoft/vscode/issues/110214
|
|
||||||
map.set('statusBarItem.errorBackground', new ThemeColor('statusBarItem.errorForeground'));
|
|
||||||
|
|
||||||
return map;
|
|
||||||
})();
|
|
||||||
|
|
||||||
private _id: number;
|
private _id: number;
|
||||||
private _alignment: number;
|
private _alignment: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user