Commit Graph

13 Commits

Author SHA1 Message Date
Linda_pp
1f98a06566 check if selected items are empty on handling code action (fix #1156) (#1157) 2021-05-03 15:40:37 +09:00
Linda_pp
4d4a908224 select preferred action by default in quickpick (#1126)
spec: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction
2021-03-30 02:30:38 +09:00
Linda_pp
51adba85f0 use quickpick to choose Code Action (#1123)
Co-authored-by: mattn <mattn.jp@gmail.com>
2021-03-28 22:06:41 +09:00
Linda_pp
a3b58eb7c4 Handle disabled code action (#1115)
* handle disabled code action

* enable disabledSupport capability

Co-authored-by: hrsh7th <hrsh7th@gmail.com>
2021-03-21 22:17:51 +09:00
Linda_pp
4819b7474a include kind in code action list item (#1111) 2021-03-20 10:57:58 -07:00
mattn
e846a999f7 Fix function argument (#1002)
Fixes #1000
2021-01-02 12:09:12 -08:00
Prabir Shrestha
2eb8d16413 refactor diagnostics under cursor to use the new internal diagnostics state (#997) 2021-01-01 11:31:07 -08:00
Prabir Shrestha
32fae1f0e9 use allowlist and blocklist instead (#847)
* use allowlist and blocklist instead
* add lsp#get_allowed_servers()
2020-06-26 16:13:09 -07:00
mattn
85a03f2b01 Merge codeAction(s) (#736)
* Merge codeAction(s)

* Print server name

* Fix indentation

* Use empty()
2020-03-03 14:29:42 +09:00
hrsh7th
46308234a2 Implement register command (#735)
* Implemente register command

* Add server_name to command context

* Expose lsp_to_vim, vim_to_lsp API's as public
2020-03-03 13:09:41 +09:00
mattn
5537feca35 Call command after edit (#734)
codeAction may contains edit and command both

Co-authored-by: hrsh7th <hrsh7th@gmail.com>
2020-03-01 00:42:48 +09:00
mattn
55e88054ce executeCommand do not handle response (#732) 2020-02-28 15:44:34 +09:00
hrsh7th
70234feca4 Improve code action (#663)
* Improve code action

* Add LspCodeActionSync

* Fix miss argument

* Fix for the review

* Add utils and tests

* Remove unused function
2020-01-09 08:35:39 -08:00