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
However, before switching to the builtin LSP, I used CoC with a bunch of plugins (mostly TypeScript oriented stuff) and I had a handy shortcut that would either:
Show code actions for what was under the cursor if there was any
Show code actions for the whole document if nothing under cursor had actions available
There would be actions that save a lot of time like "Delete all unused imports" in TS, instead of having to go through a list of all of them and deleting them one by one.
Currently, when trying to open actions-preview on a random part of the document with no quickfix simply yields "No code action available".
I tried going Visual mode and selecting the whole document then opening the actions menu, but sadly it didn't have the expected results, most likely because the LSP is trying to find something to do with that whole bunch of text instead of proposing a list of all individual quickfixes. 🤔
So, would there be a way to display all actions including the ones that are not specific to a specific symbol under cursor ?
The text was updated successfully, but these errors were encountered:
However, currently, the plugin doesn't support flexible branching like "if nothing under cursor had actions available". I'll look into whether it's possible to achieve this functionality.
Hey, thanks for the plugin, works like a charm !
However, before switching to the builtin LSP, I used CoC with a bunch of plugins (mostly TypeScript oriented stuff) and I had a handy shortcut that would either:
There would be actions that save a lot of time like "Delete all unused imports" in TS, instead of having to go through a list of all of them and deleting them one by one.
Currently, when trying to open
actions-preview
on a random part of the document with no quickfix simply yields "No code action available".I tried going Visual mode and selecting the whole document then opening the actions menu, but sadly it didn't have the expected results, most likely because the LSP is trying to find something to do with that whole bunch of text instead of proposing a list of all individual quickfixes. 🤔
So, would there be a way to display all actions including the ones that are not specific to a specific symbol under cursor ?
The text was updated successfully, but these errors were encountered: