File tree Expand file tree Collapse file tree 1 file changed +4
-32
lines changed
src/vs/workbench/contrib/remote/browser Expand file tree Collapse file tree 1 file changed +4
-32
lines changed Original file line number Diff line number Diff line change @@ -325,38 +325,10 @@ export class RemoteStartEntry extends Disposable implements IWorkbenchContributi
325
325
326
326
private async showRemoteTunnelStartActions ( ) {
327
327
await this . _init ( ) ;
328
-
329
- const computeItems = async ( ) => {
330
- const metadata = this . remoteExtensionMetadata [ 0 ] ;
331
- if ( ! metadata ) {
332
- return [ ] ;
333
- }
334
-
335
- if ( ! metadata . installed ) {
336
- await this . installAndRunStartCommand ( metadata ) ;
337
- }
338
-
339
- return this . getRemoteCommandQuickPickItems ( metadata . remoteCommands ) ;
340
- } ;
341
-
342
- const quickPick = this . quickInputService . createQuickPick ( ) ;
343
- quickPick . placeholder = nls . localize ( 'remote.startActions.quickPickPlaceholder' , 'Select an option to connect' ) ;
344
- quickPick . items = await computeItems ( ) ;
345
- quickPick . sortByLabel = false ;
346
- quickPick . canSelectMany = false ;
347
- quickPick . ignoreFocusOut = false ;
348
- once ( quickPick . onDidAccept ) ( async ( ) => {
349
-
350
- const selectedItems = quickPick . selectedItems ;
351
- if ( selectedItems . length === 1 ) {
352
- const selectedItem = selectedItems [ 0 ] . id ! ;
353
- this . executeCommandWithTelemetry ( selectedItem ) ;
354
- quickPick . dispose ( ) ;
355
- }
356
- } ) ;
357
-
358
- quickPick . onDidHide ( ( ) => quickPick . dispose ( ) ) ;
359
- quickPick . show ( ) ;
328
+ const metadata = this . remoteExtensionMetadata [ 0 ] ;
329
+ if ( metadata . installed ) {
330
+ this . executeCommandWithTelemetry ( metadata . startCommand ) ;
331
+ }
360
332
}
361
333
362
334
private async installAndRunStartCommand ( metadata : RemoteExtensionMetadata ) {
You can’t perform that action at this time.
0 commit comments