lexical-lsp / lexical

Lexical is a next-generation elixir language server
799 stars 78 forks source link

Plugins: Code actions #233

Open scohen opened 1 year ago

scohen commented 1 year ago

Given a document, diagnostics and a position generates code actions for the document.

ilourt commented 5 months ago

@scohen any news about this?

scohen commented 5 months ago

Not so far, we have a couple of code actions but I haven't made them into plugins yet. We've been focused more on the indexing work that'll power find references / go to definition, and other things.

scohen commented 5 months ago

What do you have in mind?

ilourt commented 5 months ago

I was thinking about add missing require like for Logger and alias.

In the same way we have for typescript for adding missing import.

scohen commented 5 months ago

I would suggest adding them directly to lexical rather than as plugins. Plugins are more for things like credo that are optional, and not everyone uses.

ilourt commented 4 months ago

So you suggest me to open a new issue ?

scohen commented 4 months ago

I'd prefer a PR rather than an issue, but OK.