Skip to content

Commit

Permalink
simplify map creation, fyi @bpasero
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Feb 1, 2021
1 parent a0cb5c5 commit 178e703
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/vs/workbench/api/common/extHostStatusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ import { DisposableStore } from 'vs/base/common/lifecycle';
export class ExtHostStatusBarEntry implements vscode.StatusBarItem {
private static ID_GEN = 0;

private static ALLOWED_BACKGROUND_COLORS = (() => {
const map = new Map<string, ThemeColor>();

// https://github.com/microsoft/vscode/issues/110214
map.set('statusBarItem.errorBackground', new ThemeColor('statusBarItem.errorForeground'));

return map;
})();
private static ALLOWED_BACKGROUND_COLORS = new Map<string, ThemeColor>(
[['statusBarItem.errorBackground', new ThemeColor('statusBarItem.errorForeground')]]
);

private _id: number;
private _alignment: number;
Expand Down

0 comments on commit 178e703

Please sign in to comment.