Display dotnet path on acquisition completed.
This commit is contained in:
Родитель
bf897db842
Коммит
774024352a
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче