@@ -14,7 +14,7 @@ import { LanguageClientConsumer } from "../languageClientConsumer";
14
14
export const EvaluateRequestType = new RequestType < IEvaluateRequestArguments , void , void > ( "evaluate" ) ;
15
15
export const OutputNotificationType = new NotificationType < IOutputNotificationBody > ( "output" ) ;
16
16
export const ExecutionStatusChangedNotificationType =
17
- new NotificationType < IExecutionStatusDetails > ( "powerShell/executionStatusChanged" ) ;
17
+ new NotificationType < ExecutionStatus > ( "powerShell/executionStatusChanged" ) ;
18
18
19
19
export const ShowChoicePromptRequestType =
20
20
new RequestType < IShowChoicePromptRequestArgs ,
@@ -33,12 +33,6 @@ export interface IOutputNotificationBody {
33
33
output : string ;
34
34
}
35
35
36
- interface IExecutionStatusDetails {
37
- executionOptions : IExecutionOptions ;
38
- executionStatus : ExecutionStatus ;
39
- hadErrors : boolean ;
40
- }
41
-
42
36
interface IChoiceDetails {
43
37
label : string ;
44
38
helpMessage : string ;
@@ -75,13 +69,6 @@ enum ExecutionStatus {
75
69
Completed ,
76
70
}
77
71
78
- interface IExecutionOptions {
79
- writeOutputToHost : boolean ;
80
- writeErrorsToHost : boolean ;
81
- addToHistory : boolean ;
82
- interruptCommandPrompt : boolean ;
83
- }
84
-
85
72
function showChoicePrompt (
86
73
promptDetails : IShowChoicePromptRequestArgs ,
87
74
client : LanguageClient ) : Thenable < IShowChoicePromptResponseBody > {
@@ -257,12 +244,12 @@ export class ConsoleFeature extends LanguageClientConsumer {
257
244
ShowInputPromptRequestType ,
258
245
( promptDetails ) => showInputPrompt ( promptDetails ) ) ,
259
246
260
- // TODO: We're not receiving these events from the server any more.
261
247
// Set up status bar alerts for when PowerShell is executing a script.
262
248
this . languageClient . onNotification (
263
249
ExecutionStatusChangedNotificationType ,
264
250
( executionStatusDetails ) => {
265
- switch ( executionStatusDetails . executionStatus ) {
251
+ switch ( executionStatusDetails ) {
252
+ // TODO: Use the new language status bar item.
266
253
// If execution has changed to running, make a notification
267
254
case ExecutionStatus . Running :
268
255
this . showExecutionStatus ( "PowerShell" ) ;
0 commit comments