micchy326
7770b7d5a3
Add public api get window/workDoneProgress ( #979 )
...
* impl lsp#get_progress() for statusline plugin.
* add workDoneProgress spec link
* refactor s:handle_work_done_progress()
* [workDoneProgress] prevent to subscribe multiple times
* [workDoneProgress] Fixed s:lsp_progress['percentage'] to always be float
* [workDoneProgress] support multiple progress registration.
* [workDoneProgress] Fixed s:lsp_progress['percentage'] to uinteger
* [workDoneProgress] fix for vint
* [workDoneProgress] rename variable
* [workDoneProgress] add test
* [workDoneProgress] write document
* [workDoneProgress] initialize s:progress_ui when enable/disable
* [workDoneProgress] refactor test code
* [workDoneProgress] add lsp_progress_updated
* [workDoneProgress] fix typo
* [workDoneProgress] refactor token handling
* [workDoneProgress] Fixed differences from
specifications(messages->message)
* [workDoneProgress] fix test
2020-12-31 10:51:20 -08:00
Prabir Shrestha
5c91c59f2a
add lsp#utils#buffer#get_indent_size() ( #957 )
2020-12-23 11:48:46 -08:00
William Boman
fdb69ab913
populate location list with all modified changes in a WorkspaceEdit ( #555 )
2020-10-23 19:41:32 -07: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
hrsh7th
3e207c0ee4
Change text edit implementation to support \r ( #718 )
...
* Change text edit implementation to support \r
* Fix edit on unloaded buffer
* Add \r\n tests
* Fix for perf
Co-authored-by: mattn <mattn.jp@gmail.com >
2020-02-15 00:39:40 +09:00
mattn
701c734c91
Check text_edits is null ( #697 )
...
* Check text_edits is null
Some Language Server return null
* Add test for textEdit is null
* Check additionalTextEdits is null
2020-02-01 14:17:01 +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
Prabir Shrestha
189a3118b1
add tests for lsp/utils/position.vim ( #644 )
2020-01-01 10:49:29 -08:00
prabirshrestha
50133a79e1
use * for settagstack check
2019-12-31 19:27:25 -08:00
Prabir Shrestha
8c5ee44eee
lsp#utils#tagstack#_update ( #642 )
2019-12-31 19:25:37 -08:00
Damien Radtke
e566dcd160
Use "P" instead of "p" to insert text ( #550 )
...
* Use "P" instead of "p" to insert text
* Update replace command and add test case
2019-11-18 15:42:17 +01:00
Yasuhiro Matsumoto
a20a0c1da8
Add test
2019-09-20 18:14:07 +09:00
Yasuhiro Matsumoto
3a6def04b9
Add test
2019-09-09 14:29:17 +09:00
Thomas Faingnaert
ed304dbb8a
Fix LspDocumentFormat not working as expected ( #410 )
...
* Add test
* Fix LspDocumentFormat adding newlines
* Fix manually pressing enter when formatting
2019-07-11 13:41:15 -07:00
mikoto2000
75516719d5
Fix lsp#utils#text_edit#apply_text_edits when end position was newline character. ( #388 )
2019-06-15 11:08:48 -07:00
Thomas Faingnaert
21d51ffb83
Fix text edits not preserving v:completed_item ( #389 )
...
* Add test to check v:completed_item after textedits
* Fix v:completed_item being reset after text edits
* Add silent to execute call in apply_text_edits
2019-05-25 12:01:24 -07:00
mikoto2000
900e8619be
Fix text edit when insert empty new text ( #384 )
...
* Add test of 'lsp#utils#text_edit#apply_text_edits'.
* Fix `lsp#utils#text_edit#apply_text_edits` is delete one character when textEdit command kind is insert.
I fix the problem the apply_text_edits is deleting one character
if "textEdit['range']['start'] equals textEdit['range']['end'] and textEdit['new Text'] is empty".
* Fix tests.
- create new buffer each tests
- add test utility function `s:set_text` and `get_text`
2019-05-20 17:24:41 -07:00
Bryan Forbes
e40175d972
If the user has "fixendofline" set, append a blank line to preserve the EOF newline ( #302 )
...
* If the user has "fixendofline" set, append a blank line to preserve the EOF newline
* Break utility function out into its own file and add tests
* Improve EOL detection based on docs and improve tests
2019-02-15 21:05:46 -08:00
Yasuhiro Matsumoto
46fd937a73
Add test
2019-02-11 03:38:33 +09:00
Yasuhiro Matsumoto
cf0ff507cd
Fixes exception for empty list
2019-02-11 03:33:26 +09:00