Do not draw attention when evrything is fine (#3144)

This commit is contained in:
Akshita Agarwal 2019-07-01 14:02:32 -07:00 коммит произвёл GitHub
Родитель 5b8ecf019a
Коммит 2c12a2bd20
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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', () => {