@@ -10,12 +10,9 @@ import { ICheckboxQuickPickItem, showCheckboxQuickPick } from "../controls/check
1010import { Logger } from "../logging" ;
1111import Settings = require( "../settings" ) ;
1212import { LanguageClientConsumer } from "../languageClientConsumer" ;
13- import { SessionManager } from "../session" ;
1413
1514export const EvaluateRequestType = new RequestType < IEvaluateRequestArguments , void , void > ( "evaluate" ) ;
1615export const OutputNotificationType = new NotificationType < IOutputNotificationBody > ( "output" ) ;
17- export const ExecutionStatusChangedNotificationType =
18- new NotificationType < ExecutionStatus > ( "powerShell/executionStatusChanged" ) ;
1916
2017export const ShowChoicePromptRequestType =
2118 new RequestType < IShowChoicePromptRequestArgs ,
@@ -62,13 +59,6 @@ interface IShowInputPromptResponseBody {
6259 promptCancelled : boolean ;
6360}
6461
65- enum ExecutionStatus {
66- Pending ,
67- Running ,
68- Failed ,
69- Aborted ,
70- Completed ,
71- }
7262
7363function showChoicePrompt (
7464 promptDetails : IShowChoicePromptRequestArgs ,
@@ -182,9 +172,8 @@ function onInputEntered(responseText: string): IShowInputPromptResponseBody {
182172export class ConsoleFeature extends LanguageClientConsumer {
183173 private commands : vscode . Disposable [ ] ;
184174 private handlers : vscode . Disposable [ ] ;
185- private resolveStatusBarPromise : ( value ?: { } | PromiseLike < { } > ) => void ;
186175
187- constructor ( private log : Logger , private sessionManager : SessionManager ) {
176+ constructor ( private log : Logger ) {
188177 super ( ) ;
189178 this . commands = [
190179 vscode . commands . registerCommand ( "PowerShell.RunSelection" , async ( ) => {
@@ -242,22 +231,6 @@ export class ConsoleFeature extends LanguageClientConsumer {
242231 this . languageClient . onRequest (
243232 ShowInputPromptRequestType ,
244233 ( 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- } )
261234 ]
262235 }
263236}
0 commit comments