Do not draw attention when evrything is fine (#3144)
This commit is contained in:
Родитель
5b8ecf019a
Коммит
2c12a2bd20
|
@ -7,10 +7,11 @@ import { BaseEvent, DownloadStart, InstallationStart, DownloadProgress, Omnishar
|
|||
import { BaseStatusBarItemObserver } from './BaseStatusBarItemObserver';
|
||||
import { EventType } from "../omnisharp/EventType";
|
||||
|
||||
export enum StatusBarColors{
|
||||
export enum StatusBarColors {
|
||||
Red = 'rgb(218,0,0)',
|
||||
Green = 'rgb(0,218,0)',
|
||||
Yellow = 'rgb(218,218,0)'
|
||||
Yellow = 'rgb(218,218,0)',
|
||||
White = 'rgb(256,256,256)'
|
||||
}
|
||||
|
||||
export class OmnisharpStatusBarObserver extends BaseStatusBarItemObserver {
|
||||
|
@ -33,7 +34,7 @@ export class OmnisharpStatusBarObserver extends BaseStatusBarItemObserver {
|
|||
this.ResetAndHideStatusBar();
|
||||
break;
|
||||
case EventType.OmnisharpServerOnStart:
|
||||
this.SetAndShowStatusBar('$(flame)', 'o.showOutput', StatusBarColors.Green, 'OmniSharp server is running');
|
||||
this.SetAndShowStatusBar('$(flame)', 'o.showOutput', StatusBarColors.White, 'OmniSharp server is running');
|
||||
break;
|
||||
case EventType.DownloadStart:
|
||||
this.SetAndShowStatusBar("$(cloud-download) Downloading packages", '', '', `Downloading package '${(<DownloadStart>event).packageDescription}...' `);
|
||||
|
|
|
@ -78,7 +78,7 @@ suite('OmnisharpStatusBarObserver', () => {
|
|||
expect(statusBarItem.text).to.be.equal('$(flame)');
|
||||
expect(statusBarItem.command).to.equal('o.showOutput');
|
||||
expect(statusBarItem.tooltip).to.be.equal('OmniSharp server is running');
|
||||
expect(statusBarItem.color).to.be.equal(StatusBarColors.Green);
|
||||
expect(statusBarItem.color).to.be.equal(StatusBarColors.White);
|
||||
});
|
||||
|
||||
test('OnServerStop: Status bar is hidden and the attributes are set to undefined', () => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче