Skip to content

Commit

Permalink
💄
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 committed Jul 19, 2022
1 parent ed09ab8 commit 1dae9c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions extensions/gitpod-web/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export type PortCommand = typeof PortCommands[number];
export class GitpodPortViewProvider implements vscode.WebviewViewProvider {
public static readonly viewType = 'gitpod.portsView';

public _view?: vscode.WebviewView;
private _view?: vscode.WebviewView;

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

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

0 comments on commit 1dae9c2

Please sign in to comment.