var col: number = charcol('.')
var diag: dict<any> = lspserver.getDiagByPos(bnr, lnum, col, atPos)
if diag->empty()
- util.WarnMsg('No diagnostic messages found for current line')
+ util.WarnMsg($'No diagnostic messages found for current {atPos ? "position" : "line"}')
else
DisplayDiag(diag)
endif
for i in range(1, 4)
cursor(1, i)
output = execute('LspDiagCurrent!')->split('\n')
- assert_match('No diagnostic messages found for current line', output[0])
+ assert_match('No diagnostic messages found for current position', output[0])
endfor
cursor(1, 5)
for i in range(6, 8)
cursor(1, i)
output = execute('LspDiagCurrent!')->split('\n')
- assert_match('No diagnostic messages found for current line', output[0])
+ assert_match('No diagnostic messages found for current position', output[0])
endfor
for i in range(9, 11)
for i in range(12, 12)
cursor(1, i)
output = execute('LspDiagCurrent!')->split('\n')
- assert_match('No diagnostic messages found for current line', output[0])
+ assert_match('No diagnostic messages found for current position', output[0])
endfor
g:LspOptionsSet({showDiagInPopup: true})