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

vscode: support icons contribution point #12912

Merged
merged 13 commits into from
Oct 26, 2023

Conversation

vladarama
Copy link
Contributor

What it does

Fixes: #12355

This PR adds support for the contributes.icon contribution point from VSCode. This fixes a number of issues where extension icons were invisible such as many of the Gitlens icons.

How to test

You can test the functionality of this PR by downloading an extension which contributes its icons through the icons contribution point. One such example is Gitlens.

  1. Open Theia application.
  2. Go to the Extensions view
  3. Search and download Gitlens from the vsx-registry.
  4. Verify that all contributed icons are visible and correct.

Review checklist

Reminder for reviewers

alvsan09 and others added 8 commits July 24, 2023 13:26
This commit supports the icon contributions point. It is working well,
but there is some code simplification and cleanup still to do.

Signed-off-by: Vlad Arama <[email protected]>
This commit cleans up the remaining console.log statements and adds
disposable methods to the `PluginIconService` class.

Signed-off-by: Vlad Arama <[email protected]>
This commit simplifies the `PluginIconService` class by adding helper
methods and decomposing the large code into smaller manageable
functions.

Signed-off-by: Vlad Arama <[email protected]>
This commit fixes a few linting errors related to file-headers.

Signed-off-by: Vlad Arama <[email protected]>
@msujew msujew added vscode issues related to VSCode compatibility ui/ux issues related to user interface / user experience labels Sep 28, 2023
Copy link
Contributor

@tsmaeder tsmaeder left a comment

Choose a reason for hiding this comment

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

Hi Vlad, thanks for the PR. There seems to be a bit of unused code and the layering (core vs. monaco) needs fixing. Functionally, it seems to do the job.

packages/monaco/src/browser/monaco-icon-registry-types.ts Outdated Show resolved Hide resolved
packages/monaco/src/browser/monaco-icon-registry-types.ts Outdated Show resolved Hide resolved
packages/monaco/src/browser/monaco-icon-registry-types.ts Outdated Show resolved Hide resolved
packages/monaco/src/browser/monaco-icon-registry-types.ts Outdated Show resolved Hide resolved
packages/monaco/src/browser/monaco-icon-registry-types.ts Outdated Show resolved Hide resolved
packages/monaco/src/browser/monaco-icon-registry-types.ts Outdated Show resolved Hide resolved
packages/monaco/src/browser/monaco-icon-registry-types.ts Outdated Show resolved Hide resolved
packages/monaco/src/browser/monaco-icon-registry.ts Outdated Show resolved Hide resolved
packages/monaco/src/browser/monaco-icon-registry-types.ts Outdated Show resolved Hide resolved
@JonasHelming
Copy link
Contributor

@vladarama Can you tell when you want to look at Thomas comments? I think this PR would be great to have for the upcoming release...

@vladarama
Copy link
Contributor Author

Hey @JonasHelming,
I have been pretty busy with school lately, but I plan on taking a look at it this week.

@JonasHelming
Copy link
Contributor

@vladarama Sounds great! Please keep in mind that we have a release on Thursday this week, maybe this one can make it in :-)

@tsmaeder
Copy link
Contributor

@vladarama could you address the remaining open comment, please?

@injectable()
export class MonacoIconRegistry implements IconRegistry {

readonly onDidChange: Event<void>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the "onDidChange" event connected to anything? If not, why do we have it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the reviews Thomas,
The event doesn't seem to be connected to anything. Its been removed 👍

@tsmaeder
Copy link
Contributor

@vladarama one more question I have, but then I think we're good to go.

Copy link
Contributor

@tsmaeder tsmaeder left a comment

Choose a reason for hiding this comment

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

looks good to me now.

@tsmaeder tsmaeder merged commit 985c546 into eclipse-theia:master Oct 26, 2023
13 checks passed
@vladarama vladarama deleted the icon-contributions branch October 26, 2023 18:08
@vince-fugnitto vince-fugnitto added this to the 1.43.0 milestone Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui/ux issues related to user interface / user experience vscode issues related to VSCode compatibility
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

vscode: add support for contributes.icons contribution point
6 participants