Theia: vscode: plugin system incorrectly registers 'open views'

Created on 15 Jun 2020  路  6Comments  路  Source: eclipse-theia/theia

Bug Description:

The plugin system incorrectly registers 'open views' to the open view prefix quick-open menu.
Instead of registering the container (actual views), it registers the individual view entries which does not align with VS Code. For example, when adding the Gitlens extension, the entry is not available in the quick-open menu.

Steps to Reproduce:

  1. add gitlens extension
  2. trigger view > open view
  3. notice there is no Gitlens entry like in VS Code (there is line history)


Additional Information

bug help wanted vscode

All 6 comments

There is when context for such entries. Maybe there is none matching?

There is when context for such entries. Maybe there is none matching?

Is it intended that the when clause would influence adding entries in the open view?
For example, the open view is better in vscode as it also categorizes items, and the bug I mentioned does not occur, the Gitlens entry is present.

Is it intended that the when clause would influence adding entries in the open view?

Yes, it is the same in VS Code. GitLens extension is adding multiple views with the same name to quick open view, but only one is visible according to when closure.

For example, the open view is better in vscode as it also categorizes items, and the bug I mentioned does not occur, the Gitlens entry is present.

I am not sure that categorisation is relevant here or should be another issue. We should show line history view when it is shown in VS Code regardless of categorisation.

@akosyakov the main issue I noticed is that view containers such as Gitlens are not added to the open view menu while in vscode they are. I also do not believe that view containers support when contexts. For individual parts yes however (which we have today).

@vince-fugnitto VS Code groups views by shell areas, nothing about view containers.

@vince-fugnitto VS Code groups views by shell areas, nothing about view containers.

@akosyakov yes I know, I thought for now grouping this way for now would add some value but I dropped the changes.

Was this page helpful?
0 / 5 - 0 ratings