Skip to content

Commit

Permalink
do not allow <= 0 priority in right status bar for plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Uni Sayo <unibtc@gmail.com>
  • Loading branch information
uniibu committed Mar 25, 2019
1 parent 5cbb4f1 commit c3d4807
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/plugin-ext/src/plugin/status-bar/status-bar-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export class StatusBarItemImpl implements theia.StatusBarItem {
priority: number = 0) {
this._proxy = _proxy;
this._alignment = alignment;
if (alignment === StatusBarAlignment.Right && priority <= 0) {
priority = 0.1;
}
this._priority = priority;
}

Expand Down

0 comments on commit c3d4807

Please sign in to comment.