-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Electron] Plugins icons not showed on Electron #7040
Comments
It looks like we might have the same issue. In the DevTool it shows that instead of looking for the icons in the plugins folder, the extensionContext path leads to a asar-packed path which cant be resolved. |
@akosyakov @kittaakos do you happen to have an idea as to why the assets are not properly displayed in electron? I suspect it's the same reason that #6834 does not work properly. |
@vince-fugnitto no, one has to debug why such paths are generated |
We found a workaround. Apparently the pluginUrl needs to be an absolute path when running in Electron and a relative when running in the browser. |
Would you like to propose your changes in a pull-request? We can add a check to determine if the target is Electron and compute the path accordingly. |
Will take care |
Fixes eclipse-theia#7040. Signed-off-by: Johannes Birkenstock <johannes.birkenstock@siemens.com> Signed-off-by: Liwen Guo <liwen.guo@siemens.com>
Fixes eclipse-theia#7040. Signed-off-by: Johannes Birkenstock <johannes.birkenstock@siemens.com> Signed-off-by: Liwen Guo <liwen.guo@siemens.com>
Fixes eclipse-theia#7040. Signed-off-by: Johannes Birkenstock <johannes.birkenstock@siemens.com> Signed-off-by: Liwen Guo <liwen.guo@siemens.com> Signed-off-by: Liwen Guo <lg@livven.me>
Fixes eclipse-theia#7040. Signed-off-by: Johannes Birkenstock <johannes.birkenstock@siemens.com> Signed-off-by: Liwen Guo <liwen.guo@siemens.com>
Closed by #7583 |
Description
On Electron, some icons are not shown when the plugins is installed.
May be related to #6834
Reproduction Steps
To test, install gitlens plugins and select View-> Gitlens
You will see the views, but no icon on the sidebar. (Look on the left side panel)
Tested with electron on Ubuntu 16.04 and plugin:gitlens-10.2.0.vsix
Note: If you run the same GitLens plugins on a browser (Chrome), the icon is displayed on the sidebar.
OS and Theia version:
Theia: latest (0.15.0)
OS: Ubuntu 16.04
Diagnostics:
Electron:
Browser:
The text was updated successfully, but these errors were encountered: