Commit Graph

28 Commits

Author SHA1 Message Date
Prabir Shrestha
c2c166975e use whileloop 2021-06-17 07:06:41 +00:00
Prabir Shrestha
bd5e5573f5 Revert "Revert "perf: parse array instead of combining it to string (#1175)" (#1199)"
This reverts commit fb0a72306e.
2021-06-17 06:51:38 +00:00
Prabir Shrestha
fb0a72306e Revert "perf: parse array instead of combining it to string (#1175)" (#1199)
This reverts commit f53a98754e.
2021-06-16 00:14:44 -07:00
Prabir Shrestha
f53a98754e perf: parse array instead of combining it to string (#1175) 2021-05-30 13:17:54 -07:00
mattn
ee854b4c55 Add tcp feature (#985)
* Add tcp feature

* Update doc

* Update async.vim embed

* Update doc
2021-01-01 01:28:06 +09:00
skanehira
327b9d12d6 fix cannot start vim-lsp (#843) 2020-06-20 19:00:59 -07:00
Duc Nghiem Xuan
b80ac2d3d1 fix: wrong wait condition in lsp_send (#827)
#815 introduced `lsp#utils#_wait` but the condition used in
 `lsp#client#lsp_send` was reversed
2020-05-26 20:10:13 -07:00
John Schug
2ca2fe3854 Add support for the tagfunc option (#815)
* Add support for tagfunc option

* Consolidate various synchronous wait implementations

* Refactor to use lsp#utils#position#lsp_to_vim

Also marks get_symbol_text_from_kind as internal and fixes compatibility
with older vims.
2020-05-25 14:41:21 -07:00
Tsuyoshi CHO
43be528071 on_xx handle callback / excepton log expand throwpoint (#778) 2020-04-04 14:12:30 +09:00
Fujiwara Takuya
52539a54ae Show diagnostics in a floating window (#700)
* fix comment

* fix indent

* support diagnostics in a floating window

* doc: add g:lsp_diagnostics_float_{cursor,delay}

* fix vint errors except unused variables

* suppress vint unused variable errors

* lint: use robust operator
2020-02-10 01:44:05 +09:00
hrsh7th
f769a450b2 Fix CompleteDone (#637)
* Move some codes to completion.vim that related to handling CompleteDone.

* Add abort

* Fix test

* Add l: prefix to self vars

* Disable unused vars

* Restore position

* Support snippet simple case and vim-lsp-snippets

* Support g:lsp_text_edit_enabled

* Fix for v:null results

* Fix multi-byte chars

* Add document

* Fix for vim-lsp-snippets for now

* Prepare to future improvements

* More clalify line comment

* User get_user_data instead of extract_user_data

* Always use [''] pattern for accessing dictionary property

* Fix misspelling

* More strict check for completionProvider.resolveProvider

* Fix obj.key to obj['key']

* Store completed_item id to the user_data

* Fix omni tests

* Apply for the review
- Rename expand_text_simply -> simple_expand_text
- to_col -> _lsp_to_vim
- Rename user_data key

* Add example tests

* Add timeout to completionItem/resolve in completion.vim

* Fix timeout feature

* Add timeout log

* Fix documents
2020-01-02 01:08:34 -08:00
Tomasz Zurkowski
a79fb04d36 Support refactorings through code actions. (#359)
* Support refactorings through code actions.

- make LspCodeAction work on a selected range, to support extract method
or extract variable refactorings
- properly execute commands returned by code actions
- support workspace/applyEdit requests from server

* Fixes to match the Google VimScript Style Guide

* Refactor handling of requests from server.

Introduce an on_request option in lsp#client#start, that will be called
every time a request is received from a server.

* Use robust operator ==#

* Move apply_workspace_edit to separate file.
2019-04-06 09:26:04 -07:00
Yasuhiro Matsumoto
60172d076c Logging throwpoint 2019-02-10 13:44:39 +09:00
mattn
6894fb9c8b Fix lsp_is_error (#238)
* Fix lsp_is_error

* Add missing return 0, use elseif.

* Use spaces
2019-01-10 17:07:32 -08:00
Yasuhiro Matsumoto
cbb8574e7e Wait until request is removed from context
Fixes #230
2019-01-08 09:02:40 +09:00
mattn
b58841b0a1 Merge pull request #215 from prabirshrestha/sync-request
Add option to request synchronized .
2018-12-21 12:25:04 +09:00
Yasuhiro Matsumoto
eba9ca25c0 Show error description 2018-12-21 10:49:17 +09:00
Yasuhiro Matsumoto
d4c8e001e6 Add option to request synchronized .
Also add LspDocumentFormatSync. This can be used for autocmd before
saving the file.
2018-12-17 16:40:44 +09:00
Henry Hu
cf948126ec Fix an error when the response does not correspond to a request (#137)
* fix error when the response does not correspond to a request

* log error when the corresponding request cannot be found
2018-06-19 22:32:24 -07:00
prabirshrestha
0da7cbbdf1 fixed spelling 2018-01-06 21:41:11 -08:00
prabirshrestha
775674d4fb handle null response ids 2018-01-06 21:39:28 -08:00
Prabir Shrestha
75863ac26f Always pass response for is_error function (#86) 2018-01-05 00:05:13 -08:00
Jacob Wahlgren
c4b3b2f605 Fix errors and warnings produced by vint (#51)
* Wrap silent aucmds in augroup
Prevents stacking up multiple.
* Fix function signatures
Add ! and/or abort.
* Fix syntax and variable name typo
* Use robust equality comparison
* The == operator behaves differently depending on 'ignorecase'.
2017-10-17 10:57:08 -07:00
Prabir Shrestha
7a0f9872ec rewrite lsp#client with try..catch and optimizations (#46) 2017-10-02 13:34:51 -07:00
Prabir Shrestha
bae35d03d3 notify server instantiated notifications to client 2017-09-17 22:45:54 -07:00
Prabir Shrestha
228dbd7fb4 removed lsp#client#send and added lsp#client#send_request and lsp#client#send_notification
updated example.vim to use send_request and send_notification
added support for textDocument/willSave
2017-01-16 09:22:05 -08:00
Prabir Shrestha
ca07aec897 remove lsp#client#text_document_sync_kind_* from public api 2017-01-04 20:31:07 -08:00
Prabir Shrestha
b911c99d58 rename lsp#lspClient to lsp#client 2016-12-31 12:46:55 -08:00