From 5e8617e176c4c9e7dcf1c61fe3e7d5d0cec357ce Mon Sep 17 00:00:00 2001 From: Billie Cleek Date: Wed, 29 Jan 2020 17:13:41 -0800 Subject: [PATCH] lsp: identify debug port message correctly --- autoload/go/lsp.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/go/lsp.vim b/autoload/go/lsp.vim index c8756446a3..bc09767258 100644 --- a/autoload/go/lsp.vim +++ b/autoload/go/lsp.vim @@ -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)