oleg-shilo / codemap.vscode

Code map (syntax tree) of the active document
MIT License
85 stars 28 forks source link

Is it possible to change the Explorer tab icon to something else? #103

Closed niciki-niciki closed 3 months ago

niciki-niciki commented 3 months ago

Hi,

I have one tab for explorer and next to it a tab with a CodeMap - the icons are just the same.

Is it possible to change the default CodeMap tab icon to something else?

The outline already occupies the class icon, so I propose to use a function icon instead.

Regards, Daniel

oleg-shilo commented 3 months ago

Hi Daniel, I am not entirely happy with the icon either. I am not entirely sold on the function icon as it can be interpreted as "packaging". But probably some tree-like visual will do.

What about this:

image image

niciki-niciki commented 3 months ago

That is OK for me. Thank you!

oleg-shilo commented 3 months ago

Done. Release v1.26.2 You can update the extension now.

niciki-niciki commented 3 months ago

Hi,

Sorry, but I can't see the changed icon in the last version 1.26.2. Could you check again?

Regards Daniel

oleg-shilo commented 3 months ago

Is it possible that you did not restart the VSCode instance? It reloads the extensions on update but does not refresh the tabs without reloading the editor. image

niciki-niciki commented 3 months ago

I did restart VSCode.

Here is what it looks like at my side: 20240729_155305

oleg-shilo commented 3 months ago

Actually, your VSCode is somehow misbehaving. It does show the tab and even highlights the tab with the icon. But the icon is from a completely different extension. Not even the old CodeMap icon.

TBH I have no idea what is happening there. I have now 3 PC with the latest CodeMap installed (1 manually 2 via auto-update) and all three replaced the icon correctly after the VSCode restart

oleg-shilo commented 3 months ago

I can only suggest that you create a new empty VSCode profile and install the extension there:

image

This way you will eliminate any possible interference from other extensions.

Then the new icon/tab will appear on the left side tab-bar.

Recently "MD Preview Enhanced" extension stopped working for me. But after stitching a few times between profiles it started miraculously got fixed. It costs you nothing to try. But definitely, VSCode can have some glitches.

Still, if you see a way to reproduce the problem, please share it with me.

niciki-niciki commented 3 months ago

Thank you for all the suggestions. It seems to by my local problem - after created new profile and installing only CodeMap extension there, the problem persists.

Closing this. Thank you once again 😃

niciki-niciki commented 3 months ago

I have found it! "codemap.location": "explorer"

It should be: "codemap.location": "codemap"