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

monaco: fix symbol icons #11358

Merged
merged 1 commit into from
Jun 29, 2022
Merged

monaco: fix symbol icons #11358

merged 1 commit into from
Jun 29, 2022

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes: #11357.

The pull-request fixes the symbol icons for multiple views (outline, callhierarchy, treehierarchy) by re-using codicons similarly to vscode. Previously we used svg which were removed from our sources so we defaulted to an incorrect icon.

outline:

outline-fix

call-hierarchy:

call-hierarchy-fix

How to test

  1. start the application
  2. open multiple files, for each file opened confirm that the symbols in the outline-view for the file are correct
  3. confirm that expanding/collapsing nodes in the outline view correctly display their symbols
  4. confirm that the call-hierarchy symbols are correct

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto [email protected]

The commit fixes the symbol icons for multiple views (outline,
callhierarchy, treehierarchy) by re-using codicons similarly to vscode.

Previously we used `svg` which were removed from our sources so we
defaulted to an incorrect icon.

Signed-off-by: vince-fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto added outline issues related to the outline monaco issues related to monaco call-hierarchy issues related to the call-hierarachy labels Jun 28, 2022
Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

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

I confirm that the proper icons are now displayed in the outline view!

Copy link
Contributor

@colin-grant-work colin-grant-work left a comment

Choose a reason for hiding this comment

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

The changes update to show the correct symbol icons for each symbol type in call hierarchy, outline, and breadcrumbs. 👍

@kittaakos
Copy link
Contributor

This is great!

Out of curiosity, where's --theia-sprite-y-offset defined? I wanted to understand how it worked but could not find the CSS constant definition. Thanks for the help!

@vince-fugnitto
Copy link
Member Author

Out of curiosity, where's --theia-sprite-y-offset defined?

@kittaakos I'm not quite sure myself, I don't see any reference to it besides the css file I cleaned up. It's likely that it is leftovers (in addition to the css classes) from a previous update towards codicons, or a previous monaco update.

@kittaakos
Copy link
Contributor

It's likely that it is leftovers

Thank you so much for checking <3 I also thought this is/was leftover.

@vince-fugnitto vince-fugnitto merged commit 1af3f9e into master Jun 29, 2022
@vince-fugnitto vince-fugnitto deleted the vf/fix-symbols branch June 29, 2022 19:03
@github-actions github-actions bot added this to the 1.27.0 milestone Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
call-hierarchy issues related to the call-hierarachy monaco issues related to monaco outline issues related to the outline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

outline: incorrect symbols displayed
4 participants