Show the channel on download start (#2178)

This commit is contained in:
akshita31 2018-04-11 12:24:40 -07:00 коммит произвёл GitHub
Родитель 9523d3b5cb
Коммит 12ce332305
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -4,12 +4,12 @@
*--------------------------------------------------------------------------------------------*/
import { BaseChannelObserver } from "./BaseChannelObserver";
import { BaseEvent, PackageInstallation, InstallationFailure, DebuggerNotInstalledFailure, DebuggerPrerequisiteFailure, ProjectJsonDeprecatedWarning } from "../omnisharp/loggingEvents";
import { BaseEvent, InstallationFailure, DebuggerNotInstalledFailure, DebuggerPrerequisiteFailure, ProjectJsonDeprecatedWarning, DownloadStart } from "../omnisharp/loggingEvents";
export class CsharpChannelObserver extends BaseChannelObserver {
public post = (event: BaseEvent) => {
switch (event.constructor.name) {
case PackageInstallation.name:
case DownloadStart.name:
case InstallationFailure.name:
case DebuggerNotInstalledFailure.name:
case DebuggerPrerequisiteFailure.name:

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

@ -6,13 +6,13 @@
import { should, expect } from 'chai';
import { getNullChannel } from '../testAssets/Fakes';
import { CsharpChannelObserver } from '../../../src/observers/CsharpChannelObserver';
import { InstallationFailure, PackageInstallation, DebuggerNotInstalledFailure, DebuggerPrerequisiteFailure, ProjectJsonDeprecatedWarning, BaseEvent } from '../../../src/omnisharp/loggingEvents';
import { InstallationFailure, DebuggerNotInstalledFailure, DebuggerPrerequisiteFailure, ProjectJsonDeprecatedWarning, BaseEvent, DownloadStart } from '../../../src/omnisharp/loggingEvents';
suite("CsharpChannelObserver", () => {
suiteSetup(() => should());
[
new InstallationFailure("someStage", "someError"),
new PackageInstallation("somePackage"),
new DownloadStart("somePackage"),
new DebuggerNotInstalledFailure(),
new DebuggerPrerequisiteFailure("some failure"),
new ProjectJsonDeprecatedWarning()