Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ports view improvement #384

Merged
merged 1 commit into from
Jul 19, 2022
Merged

Ports view improvement #384

merged 1 commit into from
Jul 19, 2022

Conversation

mustard-mh
Copy link

@mustard-mh mustard-mh commented Jul 15, 2022

This PR fixes gitpod-io/gitpod#11154

Improved things

  • Drag and drop portsView to left sidebar, icon missed
  • Enable it in setting, but still need to reload window to make it visible
  • Should set experiment value default true in insider vscode
  • First opening is very slow than previous Remote Explorer
  • Show Ports tab on startup without focus Not going to do it, since Terminal needs to be the default selection
  • Remove sort by port's number
  • Prompt a Try it out notification while users are using the previous Remote Explorer
  • Remove previous Remote Explorer once we enabled experimental feature
  • CHANGELOG as a part of Epic Epic: In Product Changelog - VS Code only gitpod#7537, we will continue this here
  • Close issue Epic: unify ports view between web and desktop gitpod#7408 after this one finished

How to Test

  • Use preview env https://hw-vs-port.preview.gitpod-dev.com/workspaces and choose latest code as IDE
  • Open a workspace
  • Set vscode settings gitpod.experimental.portsView.enabled to false (since its default value is true in latest code)
  • Reload window (not necessary) active Remote Explorer
  • It should prompt a try it out notification like below,
  • Click ok will make
    • That setting change to true
    • New Ports view will be focused after 2 second
    • Previous Remote Explorer will dismiss
  • Click on ports on the status bar will focus on the new Ports view (the previous one will be Remote Explorer too)

See also things improved above

return;
}
const isPortsViewExperimentEnable = vscode.workspace.getConfiguration('gitpod.experimental.portsView').get<boolean>('enabled');
vscode.commands.executeCommand('setContext', 'gitpod.portsView.visible', isPortsViewExperimentEnable);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use setContext since config will not reflect to changes sometimes.

enabled=false and change to true but Ports view not shown

@jeanp413 jeanp413 marked this pull request as ready for review July 15, 2022 15:50
@jeanp413
Copy link
Member

Just merge this into gp-code 🛹 , this minor fixes is ok to push directly to main as the feature is still experimental

@jeanp413 jeanp413 self-requested a review July 15, 2022 15:51
@mustard-mh mustard-mh force-pushed the hw/port-view branch 4 times, most recently from 6bd3de8 to 659daf8 Compare July 18, 2022 07:40
@jeanp413
Copy link
Member

@mustard-mh if you think this is ready just merge it

@mustard-mh
Copy link
Author

I tested it in preview env, and it works well, going to merge this PR. Thank you @jeanp413 🙏

@mustard-mh mustard-mh merged commit 9d68ec9 into gp-code/main Jul 19, 2022
@jeanp413 jeanp413 deleted the hw/port-view branch July 19, 2022 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants