question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Highlight occurrences doesn't work in normal mode

See original GitHub issue

So the highlight occurrences feature in vs code doesn’t work while vim is in normal mode, I understand that this might be an implication of vscode not knowing where the cursor is located while vim is in normal mode but is there a way to get around that? I am taking about this image Notice how instance of anchor_start are highlighted, but that’s only in insert mode because vim isn’t engaged.

I also wonder if the extension might report to vscode the current cursor location which i think it does because other things like bracket highlighting seems to work, then why doesn’t it work with word occurrences?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
exoticuscommented, Jan 22, 2020

@asvetliakov i’ll test that and report back

0reactions
Shaturcommented, Sep 30, 2020

Thank you! It would be nice to rigger it automatically on all cursor movements on the plugin side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Occurrences Highlight" doesn't work when vscode-go plugin ...
"Occurrences Highlight" doesn't work when vscode-go plugin is enabled. VSCode Version:1.41.1 ... Click the image to get a normal size view.
Read more >
Notepad++ highlight occurrences of selected text - Super User
Try the Settings -> Preferences -> Highlighting and uncheck the "Match whole word only" under Smart Highlighting. That seemed to work for me ......
Read more >
Automatically highlight all occurrences of the selected text in ...
I like to toggle the search highlight, so I made ctrl+c toggle it in NORMAL mode (otherwise ctrl+c does not do anything in...
Read more >
How to highlight all occurrences of a selected word in VIM?
in Normal mode will search for the next occurrence of the word under the cursor. The hlsearch option will highlight all of them...
Read more >
Variable highlighting sometimes doesn't work (Editor)
With some variables, clicking on them in the Editor does not highlight other occurrences of that same variable within the current script, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found