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

Add basic code action support #718

Merged
merged 1 commit into from
Oct 2, 2022
Merged

Conversation

lucacervello
Copy link
Contributor

I added a basic code action support.

It's similar to elixir-ls which means we parse diagnostic messages in order to enable different code actions.

I tried to add an action to prepend unused variables with _ as suggested here #140 but It's not working very well because I don't have the column of the variable.

Maybe there are better actions to implement ?

@lukaszsamson
Copy link
Collaborator

@lucacervello can you check on elixir 1.14? Since elixir-lang/elixir#11965 is fixed compiler should return detail with structured error. Line and column should be there. If it's not let's raport it to the upstream.

@lukaszsamson lukaszsamson merged commit 9fe8ea1 into elixir-lsp:master Oct 2, 2022
scohen added a commit to scohen/elixir-ls that referenced this pull request Nov 23, 2022
lukaszsamson pushed a commit that referenced this pull request Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants