Provide help links in CodeActions#579
Provide help links in CodeActions#579renkun-ken wants to merge 3 commits intoREditorSupport:masterfrom
Conversation
|
Showing the links as code actions does look nice and is more prominent than the hover-links. However, this change might be a bit counterintuitive since the code actions show up in a different place than other documentation (the hover provided by the languageserver) and opening documentation doesn't strictly match the description of code actions in the vscode API:
So maybe we could let the user choose by using a setting like |
|
When editing vscode-R code, I notice that Looks like code action is already used to show some documentation or open external links here. I think code action might be a better place to show these show-help commands especially when we add more code actions like
That's indeed doable, but I think it over-complicates things. Hover is a bit overloaded, by both languageserver and sesson watcher here. |
|
OK. The tooltip "Show fixes" does not sound consistent with what it is supposed to do. For example, a typical code action provider usually supports code refactoring such as move function to a new file, extract variable, etc, these are obviously not "fixes", but improvements or alternative actions one could do with the code. Anyway, let me revert the hover part and let |
|
Just tried working with code actions for a while and I find it quite annoying to see the lightbulb with cursor being put almost anywhere in the code. To my understanding, code actions should not appear too often like this, or it would be too distracting. Personally, I think I won't merge this PR for this reason. Is that okay I close this PR? |
That bothered me as well, so I'm fine with closing this |


What problem did you solve?
This PR moves the help links provided in hover (#578) to CodeActions so that they appear more clearly, especially along with languageserver which already shows help documentation in hover.
An added value of this is that user could use keyboard only to move cursor around and press a shortcut key (e.g. cmd+.) to show the CodeActions menu and choose the action, in this case, show help for a particular function.
(If you have)Screenshot
(If you do not have screenshot) How can I check this pull request?