Skip to content

Commit 1dae9c2

Browse files
committed
💄
1 parent ed09ab8 commit 1dae9c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

extensions/gitpod-web/src/extension.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ export type PortCommand = typeof PortCommands[number];
392392
export class GitpodPortViewProvider implements vscode.WebviewViewProvider {
393393
public static readonly viewType = 'gitpod.portsView';
394394

395-
public _view?: vscode.WebviewView;
395+
private _view?: vscode.WebviewView;
396396

397397
readonly portMap = new Map<number, GitpodWorkspacePort>();
398398

@@ -539,11 +539,12 @@ export function registerPorts(context: GitpodExtensionContext): void {
539539
}
540540
hasShownTryItOut = true;
541541
const openAction = 'Open';
542-
const neverAgain = 'Don\'t Show Again';
542+
const neverAgain = `Don't Show Again`;
543543
const action = await vscode.window.showInformationMessage('Do you want to try with our new experimental Ports view?', openAction, neverAgain);
544544
if (action === openAction) {
545+
await vscode.commands.executeCommand('setContext', 'gitpod.portsView.visible', true);
546+
vscode.commands.executeCommand('gitpod.portsView.focus');
545547
config.update('enabled', true, true);
546-
setTimeout(() => vscode.commands.executeCommand('gitpod.portsView.focus'), 2000);
547548
} else if (action === neverAgain) {
548549
config.update('neverPrompt', true, true);
549550
}

0 commit comments

Comments
 (0)