@@ -10,12 +10,9 @@ import { ICheckboxQuickPickItem, showCheckboxQuickPick } from "../controls/check
10
10
import { Logger } from "../logging" ;
11
11
import Settings = require( "../settings" ) ;
12
12
import { LanguageClientConsumer } from "../languageClientConsumer" ;
13
- import { SessionManager } from "../session" ;
14
13
15
14
export const EvaluateRequestType = new RequestType < IEvaluateRequestArguments , void , void > ( "evaluate" ) ;
16
15
export const OutputNotificationType = new NotificationType < IOutputNotificationBody > ( "output" ) ;
17
- export const ExecutionStatusChangedNotificationType =
18
- new NotificationType < ExecutionStatus > ( "powerShell/executionStatusChanged" ) ;
19
16
20
17
export const ShowChoicePromptRequestType =
21
18
new RequestType < IShowChoicePromptRequestArgs ,
@@ -62,13 +59,6 @@ interface IShowInputPromptResponseBody {
62
59
promptCancelled : boolean ;
63
60
}
64
61
65
- enum ExecutionStatus {
66
- Pending ,
67
- Running ,
68
- Failed ,
69
- Aborted ,
70
- Completed ,
71
- }
72
62
73
63
function showChoicePrompt (
74
64
promptDetails : IShowChoicePromptRequestArgs ,
@@ -182,9 +172,8 @@ function onInputEntered(responseText: string): IShowInputPromptResponseBody {
182
172
export class ConsoleFeature extends LanguageClientConsumer {
183
173
private commands : vscode . Disposable [ ] ;
184
174
private handlers : vscode . Disposable [ ] ;
185
- private resolveStatusBarPromise : ( value ?: { } | PromiseLike < { } > ) => void ;
186
175
187
- constructor ( private log : Logger , private sessionManager : SessionManager ) {
176
+ constructor ( private log : Logger ) {
188
177
super ( ) ;
189
178
this . commands = [
190
179
vscode . commands . registerCommand ( "PowerShell.RunSelection" , async ( ) => {
@@ -242,22 +231,6 @@ export class ConsoleFeature extends LanguageClientConsumer {
242
231
this . languageClient . onRequest (
243
232
ShowInputPromptRequestType ,
244
233
( promptDetails ) => showInputPrompt ( promptDetails ) ) ,
245
-
246
- // Set up status bar alerts for when PowerShell is executing a script.
247
- this . languageClient . onNotification (
248
- ExecutionStatusChangedNotificationType ,
249
- ( executionStatusDetails ) => {
250
- switch ( executionStatusDetails ) {
251
- case ExecutionStatus . Running :
252
- this . sessionManager . setSessionBusyStatus ( ) ;
253
- break ;
254
- case ExecutionStatus . Completed :
255
- case ExecutionStatus . Aborted :
256
- case ExecutionStatus . Failed :
257
- this . sessionManager . setSessionRunningStatus ( ) ;
258
- break ;
259
- }
260
- } )
261
234
]
262
235
}
263
236
}
0 commit comments