Lajos Koszti
f6329ea137
fix(lsp): correct prefix when filterText is present ( #17051 )
...
LSP server might return an item which would replace a token to another.
For example in typescript for a `jest.Mock` object `getProductsMock.`
text I get the following response:
```
{
commitCharacters = {
".",
",",
"("
},
data = {
entryNames = {
"Symbol"
},
file = "/foo/bar/baz.service.spec.ts",
line = 268,
offset = 17
},
filterText = ".Symbol",
kind = 6,
label = "Symbol",
sortText = "11",
textEdit = {
newText = "[Symbol]",
range = {
end = {
character = 16,
line = 267
},
start = {
character = 15,
line = 267
}
}
}
},
```
In `lsp.omnifunc` to get a `prefix` we call the `adjust_start_col` which
then returns the `textEdit.range.start.character`.
Th `prefix` then be the `.` character. Then when filter the items with
`remove_unmatch_completion_items`, every item will be filtered out,
since no completion word starts `.`.
To fix we return the `end.character`, which in that particular case will
be the position after the `.`.
2022-02-11 14:04:15 +01:00
zeertzjq
b981c231e2
Merge pull request #17368 from zeertzjq/test-filechanged-dialog
...
test: convert Test_file_changed_dialog() to Lua functional test
2022-02-11 21:02:27 +08:00
zeertzjq
5546492c44
test: convert Test_file_changed_dialog() to Lua functional test
2022-02-11 20:37:20 +08:00
Christian Clason
2db0a52074
Merge pull request #17360 from lewis6991/fix-window-close
...
fix: close floating windows when calling win_close()
2022-02-11 10:37:13 +01:00
zeertzjq
851252f79d
Merge pull request #17012 from EdmundsEcho/fix-checkhealth
...
prevent checkhealth failure when plugin's check returns void
2022-02-11 05:50:49 +08:00
zeertzjq
38bf52821a
Merge pull request #17353 from zeertzjq/api-changedir-func
...
fix(api): use changedir_func() in nvim_set_current_dir()
2022-02-11 03:55:32 +08:00
James McCoy
4d59318ecb
Merge pull request #17359 from dundargoc/ci/update-reviewers-on-manual-labeling
2022-02-10 12:31:24 -05:00
Dundar Göc
b0bcbb08a9
ci: add reviewers if labels are manually added after PR creation
2022-02-10 18:06:36 +01:00
James McCoy
c2ec3664e0
Merge pull request #17322 from dundargoc/ci/simplify-ci-process
2022-02-10 10:54:34 -05:00
Rom Grk
85ae04dbfd
fix: close floating windows when calling win_close()
2022-02-10 15:26:40 +00:00
zeertzjq
a73360a09a
Merge pull request #16868 from zeertzjq/vim-8.1.2221
...
vim-patch:8.1.2221,8.2.4336: filtering for :disp and :scriptnames
2022-02-10 21:04:41 +08:00
Dundar Göc
2c5382aafa
ci: remove function run_test
2022-02-10 09:43:51 +01:00
Dundar Göc
2f3fb53dbd
ci: remove meta-suite "tests"
2022-02-10 09:43:51 +01:00
Dundar Göc
357234865b
ci: remove continue flag from exit_suite since it's always needed
2022-02-10 09:43:51 +01:00
Dundar Göc
b8529ea9b8
ci: run all tests with run_suite function
2022-02-10 09:43:51 +01:00
zeertzjq
3b4bf88710
Merge pull request #17355 from zeertzjq/test-screenpos
...
test(old): comment out WinBar instead of skipping Test_screenpos()
2022-02-10 14:46:45 +08:00
zeertzjq
de328de35b
test(old): comment out WinBar instead of skipping Test_screenpos()
2022-02-10 14:06:48 +08:00
zeertzjq
23c3f7f572
fix(api): use changedir_func() in nvim_set_current_dir()
...
Co-Authored-By: smolck <46855713+smolck@users.noreply.github.com>
2022-02-10 09:45:20 +08:00
James McCoy
dba1df6359
Merge pull request #17349 from dundargoc/ci/add-more-reviewers-from-label
...
ci: add more reviewers based on label
2022-02-09 18:44:01 -05:00
zeertzjq
c415e764d4
vim-patch:8.2.4336: using :filter for :scriptnames does not work
...
Problem: Using :filter for :scriptnames does not work. (Ben Jackson)
Solution: Call message_filtered(). (closes vim/vim#9720 )
769f5895eb
Cherry-pick a modeline from Vim patch 8.2.1432.
2022-02-10 07:28:54 +08:00
zeertzjq
aea889fc06
vim-patch:8.1.2221: cannot filter :disp output
...
Problem: Cannot filter :disp output.
Solution: Support filtereing :disp output. (Andi Massimino, closes vim/vim#5117 )
8fc4296436
2022-02-10 07:28:54 +08:00
zeertzjq
90f2a851c7
Merge pull request #17342 from zeertzjq/mbyte-const
...
refactor(mbyte.c): add const qualifiers
2022-02-10 05:10:05 +08:00
dundargoc
aff0ddd784
vim-patch:8.2.4337: part of condition is always true ( #17352 )
...
Problem: Part of condition is always true.
Solution: Remove that part of the condition. (closes vim/vim#9729 )
78a8404f8b
2022-02-09 17:55:01 +00:00
zeertzjq
9b0b4829c7
Merge pull request #17345 from zeertzjq/vim-8.2.4329
...
vim-patch:8.2.4329: no support for end line number and column in 'errorformat'
2022-02-09 21:02:37 +08:00
zeertzjq
60e3940b4a
Merge pull request #17346 from zeertzjq/vim-8.2.4242
...
vim-patch:8.2.{4242,4315}: put in Visual mode cannot be repeated
2022-02-09 20:46:30 +08:00
zeertzjq
3959f3a9c8
Merge pull request #17350 from zeertzjq/vim-8.2.1316
...
vim-patch:8.2.{1316,2199,2201,2202}
2022-02-09 20:11:12 +08:00
zeertzjq
0675c7de75
vim-patch:8.2.2202: write file test still fails on MS-Windows
...
Problem: Write file test still fails on MS-Windows.
Solution: Set fileformat with the :edit command
16204962c7
2022-02-09 19:24:41 +08:00
zeertzjq
2863fac61f
vim-patch:8.2.2201: write file test fails on MS-Windows
...
Problem: Write file test fails on MS-Windows.
Solution: Force edit after setting 'fileformat'.
bd318559cf
2022-02-09 19:24:41 +08:00
zeertzjq
47a98ab394
vim-patch:8.2.2199: first write after setting 'eol' does not have NL added
...
Problem: First write after setting 'eol' does not have NL added. (Tomáš
Janoušek)
Solution: Only use b_no_eol_lnum when doing a binary write. (closes vim/vim#7535 )
b3c8b1d254
2022-02-09 19:24:41 +08:00
zeertzjq
92e4394562
vim-patch:8.2.1316: test 42 is still old style
...
Problem: Test 42 is still old style.
Solution: Turn it into a new style test. (Yegappan Lakshmanan, closes vim/vim#6561 )
b61ef01cce
Including the Xtest2 -> Xfile2 change from Vim patch 8.2.1498.
2022-02-09 19:24:41 +08:00
Dundar Göc
afac1b5d87
ci: add more reviewers based on label
2022-02-09 10:47:14 +01:00
zeertzjq
01b748f28f
Merge pull request #17347 from zeertzjq/screen-pvs
...
refactor(PVS/V547): p == NULL is always false
2022-02-09 15:52:00 +08:00
zeertzjq
a2a37effc2
refactor(PVS/V547): p == NULL is always false
2022-02-09 15:23:45 +08:00
zeertzjq
3fe47647c7
vim-patch:8.2.4315: put in Visual mode not fully tested
...
Problem: Put in Visual mode not fully tested.
Solution: Add a few more test cases. (closes vim/vim#9708 )
6bf821e8ab
2022-02-09 14:21:04 +08:00
zeertzjq
196160b183
vim-patch:partial:f10911e5db16
...
Update runtime files
f10911e5db
2022-02-09 14:21:04 +08:00
zeertzjq
d9cb3fba92
vim-patch:8.2.4242: put in Visual mode cannot be repeated
...
Problem: Put in Visual mode cannot be repeated.
Solution: Use "P" to put without yanking the deleted text into the unnamed
register. (Shougo Matsushita, closes vim/vim#9591 )
fb55207ed1
Cherry-pick get_y_previous() and set_y_previous() from patch 8.1.1736.
Nvim has removed y_current, so code related to it is N/A.
2022-02-09 14:21:04 +08:00
zeertzjq
b9732e555b
vim-patch:8.2.4329: no support for end line number and column in 'errorformat'
...
Problem: No support for end line number and column in 'errorformat'.
Solution: Add %e and %k. (closes vim/vim#9624 )
e023d49937
Use "\t" to represent a Tab as it looks better.
2022-02-09 13:31:06 +08:00
Edmund Cape
300b009f47
fix(healthcheck): handle empty reports
2022-02-09 10:18:22 +08:00
zeertzjq
07c97fa02d
Merge pull request #17321 from dundargoc/refactor/pvs/v547
...
refactor(PVS/V547): expression is always true/false
2022-02-09 10:08:16 +08:00
zeertzjq
ff81725ff0
refactor(mbyte.c): add const qualifiers
...
This only touches functions that do not return a pointer.
Also add a note about the differences between mb_head_off() and utf_head_off().
2022-02-09 09:52:57 +08:00
zeertzjq
e16ec0be22
Merge pull request #17341 from zeertzjq/clang-suppress
...
chore(clang): suppress "result of operation is garbage"
2022-02-09 09:25:18 +08:00
zeertzjq
4ce5d27f46
chore(clang): suppress "result of operation is garbage"
2022-02-09 08:54:54 +08:00
James McCoy
19b2ad0518
Merge pull request #17332 from cryptomilk/asn-vterm-output-callback
...
feat(term): Use vterm_output_set_callback()
2022-02-08 19:26:38 -05:00
James McCoy
0290889fa9
Merge pull request #17330 from dundargoc/ci/add-reviewer-from-label
...
ci: add write permissions to add-reviewer job
2022-02-08 18:43:03 -05:00
zeertzjq
4d5cd3abe0
Merge pull request #17326 from zeertzjq/vim-8.1.2297
...
vim-patch:8.1.2297: the ex_vimgrep() function is too long
2022-02-09 07:07:25 +08:00
zeertzjq
ef819fc052
vim-patch:8.1.2297: the ex_vimgrep() function is too long
...
Problem: The ex_vimgrep() function is too long.
Solution: Split it in three parts. (Yegappan Lakshmanan, closes vim/vim#5211 )
d6a98a3a97
Including a missing change to ex_vimgrep() from patch 8.0.1831.
2022-02-09 06:34:21 +08:00
zeertzjq
bcea732997
Merge pull request #17328 from zeertzjq/vim-8.2.0197
...
vim-patch:8.2.0197: some Ex commands not sufficiently tested
2022-02-09 04:40:15 +08:00
Sean Dewar
46c93b4304
Merge pull request #16553 from seandewar/vim-8.2.0878
...
vim-patch:8.2.{0882,1051,1083}: port `reduce()` function
2022-02-08 17:05:27 +00:00
Dundar Göc
79bacb0973
ci: add write permissions to add-reviewer job
2022-02-08 14:56:46 +01:00
Dundar Göc
cfed5baa38
refactor(PVS/V547): expression is always true/false
2022-02-08 14:52:31 +01:00