@@ -54,18 +54,6 @@ export class Remote {
5454private readonly mode :vscode . ExtensionMode ,
5555) { }
5656
57- private async confirmStart ( workspaceName :string ) :Promise < boolean > {
58- const action = await this . vscodeProposed . window . showInformationMessage (
59- `Unable to connect to the workspace${ workspaceName } because it is not running. Start the workspace?` ,
60- {
61- useCustom :true ,
62- modal :true ,
63- } ,
64- "Start" ,
65- ) ;
66- return action === "Start" ;
67- }
68-
6957/**
7058 * Try to get the workspace running. Return undefined if the user canceled.
7159 */
@@ -132,9 +120,6 @@ export class Remote {
132120) ;
133121break ;
134122case "stopped" :
135- if ( ! ( await this . confirmStart ( workspaceName ) ) ) {
136- return undefined ;
137- }
138123writeEmitter = initWriteEmitterAndTerminal ( ) ;
139124this . storage . output . info ( `Starting${ workspaceName } ...` ) ;
140125workspace = await startWorkspaceIfStoppedOrFailed (
@@ -150,9 +135,6 @@ export class Remote {
150135// On a first attempt, we will try starting a failed workspace
151136// (for example canceling a start seems to cause this state).
152137if ( attempts === 1 ) {
153- if ( ! ( await this . confirmStart ( workspaceName ) ) ) {
154- return undefined ;
155- }
156138writeEmitter = initWriteEmitterAndTerminal ( ) ;
157139this . storage . output . info ( `Starting${ workspaceName } ...` ) ;
158140workspace = await startWorkspaceIfStoppedOrFailed (