| 1168 | } |
| 1169 | |
| 1170 | private createStatusBarItem(): vscode.LanguageStatusItem { |
| 1171 | const statusTitle = "Show PowerShell Session Menu"; |
| 1172 | const languageStatusItem = vscode.languages.createLanguageStatusItem( |
| 1173 | "powershell", |
| 1174 | this.documentSelector, |
| 1175 | ); |
| 1176 | languageStatusItem.command = { |
| 1177 | title: statusTitle, |
| 1178 | command: this.ShowSessionMenuCommandName, |
| 1179 | }; |
| 1180 | languageStatusItem.text = "$(terminal-powershell)"; |
| 1181 | languageStatusItem.detail = "PowerShell"; |
| 1182 | return languageStatusItem; |
| 1183 | } |
| 1184 | |
| 1185 | private async waitWhileStarting(): Promise<void> { |
| 1186 | while (this.sessionStatus === SessionStatus.Starting) { |