# file without an LSP server
edit a.raku
- assert_match(['Language server for "raku" file type is not found'],
- execute('LspFormat')->split("\n"))
+ assert_match('Language server for "raku" file type is not found',
+ execute('LspFormat')->split("\n")[0])
:%bw!
enddef
# file without an LSP server
edit a.raku
- assert_match(['Language server for "raku" file type is not found'],
- execute('LspShowReferences')->split("\n"))
+ assert_match('Language server for "raku" file type is not found',
+ execute('LspShowReferences')->split("\n")[0])
:%bw!
enddef
g:LspOptionsSet({showDiagInPopup: false})
cursor(1, 1)
:2LspDiagPrev
- assert_equal('Error: No more diagnostics found', output[0])
+ assert_match('No more diagnostics found', output[0])
cursor(3, 3)
:2LspDiagPrev
assert_equal([1, 9], [line('.'), col('.')])
# file without an LSP server
edit a.raku
- assert_match(['Language server for "raku" file type is not found'],
- execute('LspCodeAction')->split("\n"))
+ assert_match('Language server for "raku" file type is not found',
+ execute('LspCodeAction')->split("\n")[0])
:%bw!
enddef
# file without an LSP server
edit a.raku
- assert_match(['Language server for "raku" file type is not found'],
- execute('LspRename')->split("\n"))
+ assert_match('Language server for "raku" file type is not found',
+ execute('LspRename')->split("\n")[0])
:%bw!
enddef
# file without an LSP server
edit a.raku
- assert_match(['Language server for "raku" file type is not found'],
- execute('LspSelectionExpand')->split("\n"))
+ assert_match('Language server for "raku" file type is not found',
+ execute('LspSelectionExpand')->split("\n")[0])
:%bw!
enddef
# file without an LSP server
edit a.raku
- assert_match(['Language server for "raku" file type is not found'],
- execute('LspGotoDefinition')->split("\n"))
- assert_match(['Language server for "raku" file type is not found'],
- execute('LspGotoDeclaration')->split("\n"))
- assert_match(['Language server for "raku" file type is not found'],
- execute('LspGotoImpl')->split("\n"))
+ assert_match('Language server for "raku" file type is not found',
+ execute('LspGotoDefinition')->split("\n")[0])
+ assert_match('Language server for "raku" file type is not found',
+ execute('LspGotoDeclaration')->split("\n")[0])
+ assert_match('Language server for "raku" file type is not found',
+ execute('LspGotoImpl')->split("\n")[0])
:%bw!
enddef
assert_equal([5, 6], [line('.'), col('.')])
var output = execute(':LspSymbolSearch lsptest_nonexist')->split("\n")
- assert_match(['Symbol "lsptest_nonexist" is not found'], output)
+ assert_match('Symbol "lsptest_nonexist" is not found', output[0])
:%bw!
enddef