Display dotnet path on acquisition completed.

This commit is contained in:
NTaylorMullen 2019-05-05 09:55:44 -07:00
Родитель bf897db842
Коммит 774024352a
3 изменённых файлов: 7 добавлений и 2 удалений

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

@ -100,7 +100,7 @@ export class DotnetAcquisitionWorker {
this.eventStream.post(new DotnetAcquisitionScriptError(stderr));
reject(stderr);
} else {
this.eventStream.post(new DotnetAcquisitionCompleted());
this.eventStream.post(new DotnetAcquisitionCompleted(this.dotnetPath));
resolve();
}
});

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

@ -57,4 +57,7 @@ export class DotnetAcquisitionScriptError extends DotnetAcquisitionError {
export class DotnetAcquisitionCompleted implements IEvent {
public readonly type = EventType.DotnetAcquisitionCompleted;
constructor(public readonly dotnetPath: string) {
}
}

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

@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import { DotnetAcquisitionError } from './EventStreamEvents';
import { DotnetAcquisitionCompleted, DotnetAcquisitionError } from './EventStreamEvents';
import { EventType } from './EventType';
import { IEvent } from './IEvent';
import { IEventStreamObserver } from './IEventStreamObserver';
@ -20,7 +20,9 @@ export class OutputChannelObserver implements IEventStreamObserver {
this.outputChannel.appendLine('');
break;
case EventType.DotnetAcquisitionCompleted:
const acquisitionCompleted = event as DotnetAcquisitionCompleted;
this.outputChannel.appendLine('.NET Core tooling installed!');
this.outputChannel.appendLine(`dotnet executable path: ${acquisitionCompleted.dotnetPath}`);
break;
case EventType.DotnetAcquisitionError:
const error = event as DotnetAcquisitionError;