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

Moving extension editor to another group makes details lost #14760

Closed
MichaelZalla opened this issue Oct 31, 2016 · 5 comments
Closed

Moving extension editor to another group makes details lost #14760

MichaelZalla opened this issue Oct 31, 2016 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@MichaelZalla
Copy link

  • VSCode Version: Code 1.6.1 (9e4e44c, 2016-10-13T15:27:10.246Z)
  • OS Version: Darwin x64 15.6.0
  • Extensions: DmitryDorofeev.empty-indent-0.1.2, MattiasPernhult.vscode-todo-0.8.0, SirTori.indenticator-0.2.1, Tyriar.lorem-ipsum, Tyriar.sort-lines-1.1.0, dbaeumer.jshint-0.10.15, dbaeumer.vscode-eslint-1.0.8, donjayamanne.python-0.4.2, eg2.tslint-0.5.39, gerane.Theme-BetterJS-0.0.3, gerane.Theme-ChromeDevTools-0.0.2, gerane.Theme-Github-0.0.2, gerane.Theme-HotDogStand-0.0.2, gerane.Theme-Hyrule-0.0.2, gerane.Theme-TomorrowNightEighties-0.0.2, jakob101.RelativePath-0.11.0, jmallien.ReplaceWithNewline-0.0.1, johnpapa.Angular2-1.0.2, jpalioto.StretchTimer, mrmlnc.vscode-apache-1.1.0, msjsdiag.debugger-for-chrome-1.2.2, nwallace.language-vscode-javascript-angular2-0.0.11, shyykoserhiy.vscode-spotify-1.0.0, stkb.rewrap-0.6.2, wmaurer.join-lines

Steps to reproduce:

  1. Open Visual Studio Code.
  2. Preferences > Open User Settings to open Default Settings and settings.json side-by-side.
  3. Extensions > Show Installed Extensions to open the Extensions sidebar.
  4. Click on an extension's title to open a description tab on the right.
  5. With the Default Settings (left) tab in focus, hit + K + to swap left and right panes.

Expected result:

  1. The Extension: tab switches sides with no change to its appearance.
  2. The user may close all settings tabs and re-open them (i.e., + ,).

Actual result:

  1. Inside the Extension: tab, contents of the Details sub-tab (to the left of the Contributions sub-tab) disappears. The user must click on Contributions and then back on Details to display the details again.
  2. Closing all Settings windows and attempting to re-open (i.e., + ,) results in an error: Unable to open 'Default Settings': Cannot read property 'length' of null..
@bpasero
Copy link
Member

bpasero commented Oct 31, 2016

Error 1. I refer you to @joaomoreno why the webview does not load the details again.

Error 2. you are describing seems to be #13513

@bpasero bpasero assigned joaomoreno and unassigned bpasero Oct 31, 2016
@bpasero bpasero changed the title Swapping windows breaks Extension Details and Default Settings features. Moving extension editor to another group makes details lost Oct 31, 2016
@bpasero
Copy link
Member

bpasero commented Oct 31, 2016

Much easier to reproduce by just moving the group of where the extension editor is in to another group:

editors

@joaomoreno
Copy link
Member

joaomoreno commented Nov 1, 2016

@bpasero It works when moving the editor itself, instead of the whole group. What can I do?

@joaomoreno joaomoreno added this to the November 2016 milestone Nov 1, 2016
@joaomoreno joaomoreno added the bug Issue identified by VS Code Team member as probable bug label Nov 1, 2016
@bpasero
Copy link
Member

bpasero commented Nov 1, 2016

@joaomoreno check what the htmlPreviewPart does in this case: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/html/browser/htmlPreviewPart.ts#L92

Maybe there is room for some reuse in that component so that you do not have to rebuild everything? Ideally all webview code lives in one component with all the tricks and hacks included.

@bpasero bpasero removed their assignment Nov 1, 2016
@joaomoreno
Copy link
Member

@bpasero Thanks!

@jrieken jrieken added the verified Verification succeeded label Dec 8, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants