You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given I am viewing an Elixir file,
And the cursor is at a certain position in the screen (line, column),
I want to get the all ranges where the symbol at position appears.
If the cursor is on Bar.foo(), it should only highlight the two Bar.foo() calls, not the other occurrences of foo in the code, i.e. only the reocurrences of the same symbol.
@rodrigues I've started changing the Parser and MetadataBuilder in order to provide column information. This is necessary for precise highlighting and other features like refactoring. After a couple of months with no time for any open source project, I might have a couple of days this week to finish this and some other pending issues.
Given I am viewing an Elixir file,
And the cursor is at a certain position in the screen (line, column),
I want to get the all ranges where the symbol at position appears.
Example:
If the cursor is on
Bar.foo()
, it should only highlight the twoBar.foo()
calls, not the other occurrences offoo
in the code, i.e. only the reocurrences of the same symbol.Being at either
a()
, the definition or the call inb()
, both should be highlighted, but not the one inc()
.Local variables with same name but in different scopes shouldn't be considered the same symbol.
Not sure this is a very feasible problem to solve, but it seems that this library would be the right place for it. 🙂
That would allow elixir-ls to provide the
documentHighlight
feature: https://microsoft.github.io/language-server-protocol/specification#textDocument_documentHighlightJakeBecker/elixir-ls#20
The text was updated successfully, but these errors were encountered: