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

Icons in WATCH view missing in latest VSC insiders #90177

Closed
karrtikr opened this issue Feb 6, 2020 · 7 comments
Closed

Icons in WATCH view missing in latest VSC insiders #90177

karrtikr opened this issue Feb 6, 2020 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@karrtikr
Copy link
Contributor

karrtikr commented Feb 6, 2020

Version: 1.42.0-insider (user setup)
Commit: ae08d54
Date: 2020-02-05T20:04:22.920Z
Electron: 6.1.6
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363

The highlighted icons to add and remove variables (while debugging) in the WATCH view are missing in latest VS Code insiders. The following screenshot is from the stable version

image

Does this issue occur when all extensions are disabled?: No

@eamodio
Copy link
Contributor

eamodio commented Feb 6, 2020

I can't reproduce this on either 1.42 or the latest 1.42-insiders -- Can you provide more details?

@eamodio eamodio added the info-needed Issue requires more information from poster label Feb 6, 2020
@karrtikr
Copy link
Contributor Author

karrtikr commented Feb 6, 2020

I just noticed it's only happening when Python extension is installed

Steps to reproduce

  • Install the python extension
  • Open a workspace folder containing .vscode/launch.json and a python file
  • Open the python file

It's working fine in the previous versions of VSC

@isidorn
Copy link
Contributor

isidorn commented Feb 7, 2020

This works for me. Please note the picture.
We did not do any changes in this area. Thus it is my reason to believe that something changed in the python extension.
I suggest that you simply F1 > develoepr tools > investigate that area where the icons are missing and see if the HTML elements are present, is the css for icon applied and so on.
Might you have some other extension that is injecting CSS?

Screenshot 2020-02-07 at 13 42 40

@karrtikr
Copy link
Contributor Author

@isidorn It happens with me irrespective of which extension is installed. Updated the steps to repro:

  • Disable all the installed extensions from the Command palette
  • Open a workspace containing launch.json.
    Observe that the WATCH window is fine
  • Enable any one of the extensions
    Have a look at the WATCH window again. The icons disappear

My other co-worker also sees this issue even in VS Code stable. Please try reproducing it again, thanks for the patience.

If you're still not able to repro, I will check the CSS and get back to you.

@isidorn
Copy link
Contributor

isidorn commented Feb 12, 2020

@karrtikr thank you for the steps. I can also reproduce.

I think the issue here is that we moved to the new View and container infrastructure. When all extensions get disabled - we probably re-add the views to the view container and some bad timing seems to happen.
I checked and I set the correct actions from the Watch view here however the view container probably later overwrites this.
Due to that assigning to @sbatten . To repro just:

  1. Open debug viewlet, hover over watch actions -> they are there
  2. Disable all extensions, hover over watch actions -> they are not there. The action bar is not aware of them, even though I see that they are nicely added to the toolbar on startup, but probably they get cleared away. Can you please investigate?

Even though this happens in stable this is not a candidate since it is a corner case, and there are alternative command palette actions to these. Thus assigning to february.

fyi @sandy081

@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Feb 12, 2020
@isidorn isidorn added this to the February 2020 milestone Feb 12, 2020
@isidorn
Copy link
Contributor

isidorn commented Feb 12, 2020

After consulting with @sandy081 he came to the good idea that we should drop the pattern of setting the actions directly on the toolbar, but we should instead always have the getActions(). Thus I have updated my views and now the issue no longer seems to happen.
@karrtikr thanks for reporting this!

@karrtikr
Copy link
Contributor Author

Happy to. Thanks for the quick fix!

@mjbvz mjbvz added the verified Verification succeeded label Feb 27, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2020
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

5 participants