Skip to content

Commit

Permalink
Merge pull request #2683 from bhcleek/lsp/debug
Browse files Browse the repository at this point in the history
lsp: identify debug port message correctly
  • Loading branch information
bhcleek authored Jan 30, 2020
2 parents 605cd6b + 5e8617e commit 59e14ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/go/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ function! s:newlsp() abort
endfunction

function! l:lsp.err_cb(ch, msg) dict abort
if a:msg =~ '^\tPort = \d\+$' && !get(self, 'debugport', 0)
let self.debugport = substitute(a:msg, 'debug server listening on port \(\d\+\).*$', '\1', '')
if a:msg =~ '^\d\{4}/\d\d/\d\d\ \d\d:\d\d:\d\d debug server listening on port \d\+$' && !get(self, 'debugport', 0)
let self.debugport = substitute(a:msg, '\d\{4}/\d\d/\d\d\ \d\d:\d\d:\d\d debug server listening on port \(\d\+\).*$', '\1', '')
endif

call s:debug('stderr', a:msg)
Expand Down

0 comments on commit 59e14ba

Please sign in to comment.