File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
extensions/gitpod-web/src Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ export type PortCommand = typeof PortCommands[number];
392
392
export class GitpodPortViewProvider implements vscode . WebviewViewProvider {
393
393
public static readonly viewType = 'gitpod.portsView' ;
394
394
395
- public _view ?: vscode . WebviewView ;
395
+ private _view ?: vscode . WebviewView ;
396
396
397
397
readonly portMap = new Map < number , GitpodWorkspacePort > ( ) ;
398
398
@@ -539,11 +539,12 @@ export function registerPorts(context: GitpodExtensionContext): void {
539
539
}
540
540
hasShownTryItOut = true ;
541
541
const openAction = 'Open' ;
542
- const neverAgain = ' Don\ 't Show Again' ;
542
+ const neverAgain = ` Don't Show Again` ;
543
543
const action = await vscode . window . showInformationMessage ( 'Do you want to try with our new experimental Ports view?' , openAction , neverAgain ) ;
544
544
if ( action === openAction ) {
545
+ await vscode . commands . executeCommand ( 'setContext' , 'gitpod.portsView.visible' , true ) ;
546
+ vscode . commands . executeCommand ( 'gitpod.portsView.focus' ) ;
545
547
config . update ( 'enabled' , true , true ) ;
546
- setTimeout ( ( ) => vscode . commands . executeCommand ( 'gitpod.portsView.focus' ) , 2000 ) ;
547
548
} else if ( action === neverAgain ) {
548
549
config . update ( 'neverPrompt' , true , true ) ;
549
550
}
You can’t perform that action at this time.
0 commit comments