lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

Should rust analyzer assists appear in sideline by default?

Open jacg opened this issue 5 years ago • 2 comments

Rust analyzer assists are not advertised in the sideline. Changing the value of lsp-ui-sideline-actions-kind-regex from the default "quickfix.*\\|refactor.*" to ".*" overcomes this. The question is, should these assists be displayed by default?

@yyoncho suggested that the behaviour of vscode be consulted as the oracle of wisdom on this point. Unfortunately, I am currently unable to run vscode with the required extension, in order to answer this question.

jacg avatar Jun 08 '20 16:06 jacg

I think it's probably a thing RA is getting wrong: These assists should have a type Reported there at https://github.com/rust-analyzer/rust-analyzer/issues/5172. I've worked around this by using:

  (add-hook 'rust-mode-hook (defun asf--rust-allow-all-fixes ()
                              (setq-local lsp-ui-sideline-actions-kind-regex "quickfix.*\\|refactor.*\\|^$")))

That should set up the lsp-ui sideline to display all "" type code assists from rust-analyzer.

antifuchs avatar Jul 01 '20 14:07 antifuchs

we have updated that regex in lsp-mode we should probably eliminate the lsp-ui variable and use the lsp-mode one.

yyoncho avatar Jul 01 '20 14:07 yyoncho