Maptz.VSCode.Extensions.CamelCaseNavigation icon indicating copy to clipboard operation
Maptz.VSCode.Extensions.CamelCaseNavigation copied to clipboard

on camelCaseNavigation, refrences of same variable is not highlighted

Open aghArdeshir opened this issue 6 years ago • 14 comments

HI! This plugin is amazing! Thanks! I'm into camels too :)

BTW, VSCode has a feature that when the cursor moves over a variable, all of it's references inside the same file are highlighted (screenshot below) But when navigation is done through camelCase plugin, the highlighting doesn't appear.

screenshot 7

Thanks for your plugin.

aghArdeshir avatar Nov 11 '18 11:11 aghArdeshir

Are you still seeing this behaviour? I'm not seeing this issue on my machine.

maptz avatar Jan 21 '19 19:01 maptz

HI! Yes I do still have. I recorded this GIF right now:

maptz

Windows 10 I have VSCode 1.30.2 Your plugin@ 0.3.51

I just recorded this HTML portion (its in a .vue file), but in happpens in .HTML & .JS files (I mean it happens everywhere for me)

aghArdeshir avatar Jan 22 '19 07:01 aghArdeshir

@Ardeshir81 are you sure this isn't the designed VS Code behaviour for HTML where only the closing tag is highlighted? I'm seeing other variable instances highlighted in .js and .cs files with the extension enabled.

maptz avatar Jan 22 '19 09:01 maptz

Yeah! I will record more GIFs tomorrow

aghArdeshir avatar Jan 22 '19 16:01 aghArdeshir

Hi @Ardeshir81

It would be great to see more about what problem you're having.

maptz avatar Jan 31 '19 19:01 maptz

wow @maptz thanks for reminder! I actually forgot : shame : : shame : : shame : : ))

here you go I hope I could demonstrate what I mean in this GIF

camel-case-test

Thanks for this great job!

aghArdeshir avatar Feb 02 '19 11:02 aghArdeshir

Thanks @Ardeshir81. It would be great if you could explain a bit more. In the HTML version, are you expecting all instances of span to be highlighted?

maptz avatar Feb 03 '19 21:02 maptz

HI! I'm indicating in this example that when I use right & left arrows, highlighting appears. But when I'm using Ctrl+Right & Ctrl+Left arrows (i.e. using camelCase plugin) it doesn't.

If you notify in HTML , when I scroll through span letters, letter by letter (e.g. left arrow) the highlighting works. But when I do Ctrl+RightArrow (i.e. jumping from last/third/second letter to before letter s) the highlighting doesn't appear.

I hoped you could recognize I'm using Ctrl from seeing the caret jump.

aghArdeshir avatar Feb 04 '19 04:02 aghArdeshir

camel-case-test2

aghArdeshir avatar Feb 04 '19 04:02 aghArdeshir

Aha. Doh. Now I understand. Thanks for the clarification! Very good point. I'll look into this.

maptz avatar Feb 04 '19 05:02 maptz

Sorry. I've just looked into this again tonight and I can't see an easy way of fixing it.

maptz avatar Feb 04 '20 10:02 maptz

Visual Studio doesn't highlight the references of the symbol when you start word navigation (ctrl + <- / ctrl + ->).

alaaltoros avatar Mar 05 '20 16:03 alaaltoros

Anybody know how to force the VS editor to update the reference highlighting?

maptz avatar Mar 06 '20 23:03 maptz

I'm working on this

aghArdeshir avatar Nov 21 '20 20:11 aghArdeshir

Hi, As this feature is now part of VS Code, I won't be updating this repository. Feature requests should be made to the VS Code team.

maptz avatar Jan 18 '23 00:01 maptz