return
endif
+ if which == 'last'
+ JumpDiag(diags[-1])
+ return
+ endif
+
# Find the entry just before the current line (binary search)
var count = a_count > 1 ? a_count : 1
var curlnum: number = line('.')
command! -nargs=0 -bar LspDiagFirst lsp.JumpToDiag('first')
command! -nargs=0 -bar LspDiagHighlightDisable lsp.DiagHighlightDisable()
command! -nargs=0 -bar LspDiagHighlightEnable lsp.DiagHighlightEnable()
+command! -nargs=0 -bar LspDiagLast lsp.JumpToDiag('last')
command! -nargs=0 -bar -count=1 LspDiagNext lsp.JumpToDiag('next', <count>)
command! -nargs=0 -bar -count=1 LspDiagPrev lsp.JumpToDiag('prev', <count>)
command! -nargs=0 -bar LspDiagShow lsp.ShowDiagnostics()
anoremenu <silent> L&sp.Diagnostics.Current :LspDiagCurrent<CR>
anoremenu <silent> L&sp.Diagnostics.Show\ All :LspDiagShow<CR>
anoremenu <silent> L&sp.Diagnostics.First :LspDiagFirst<CR>
+ anoremenu <silent> L&sp.Diagnostics.Last :LspDiagLast<CR>
anoremenu <silent> L&sp.Diagnostics.Next :LspDiagNext<CR>
anoremenu <silent> L&sp.Diagnostics.Prev :LspDiagPrev<CR>
anoremenu <silent> L&sp.Diagnostics.This :LspDiagHere<CR>