From cae7315968b7977605d4fa89a11a907c070d6f34 Mon Sep 17 00:00:00 2001 From: rwxguo <10892928+rwxguo@users.noreply.github.com> Date: Mon, 18 Dec 2023 10:00:05 +0800 Subject: [PATCH] update --- autoload/go/debug.vim | 2 +- autoload/go/lsp.vim | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/go/debug.vim b/autoload/go/debug.vim index 58b35d19c4..b27c565e68 100644 --- a/autoload/go/debug.vim +++ b/autoload/go/debug.vim @@ -812,7 +812,7 @@ endfunction function! go#debug#TestFunc(...) abort let l:test = go#util#TestName() if l:test is '' - call go#util#Warn("vim-go: [debug] no test found immediate to cursor") + call go#util#EchoWarning("vim-go: [debug] no test found immediate to cursor") return endif call call('go#debug#Start', extend(['test', '.', '-test.run', printf('%s$', l:test)], a:000)) diff --git a/autoload/go/lsp.vim b/autoload/go/lsp.vim index 55761391f5..d747af38ae 100644 --- a/autoload/go/lsp.vim +++ b/autoload/go/lsp.vim @@ -618,7 +618,7 @@ function! s:definitionHandler(next, msg) abort dict let l:line = s:lineinfile(go#path#FromURI(l:msg.uri), l:msg.range.start.line+1) if l:line is -1 - call go#util#Warn('could not find definition') + call go#util#EchoWarning('could not find definition') return endif @@ -651,7 +651,7 @@ function! s:typeDefinitionHandler(next, msg) abort dict let l:line = s:lineinfile(go#path#FromURI(l:msg.uri), l:msg.range.start.line+1) if l:line is -1 - call go#util#Warn('could not find definition') + call go#util#EchoWarning('could not find definition') return endif @@ -1866,7 +1866,7 @@ function s:applyDocumentChanges(changes) let l:editbufnr = bufnr(l:bufname) if l:editbufnr == -1 - call go#util#EchoWarn(printf('could not apply changes to %s', l:fname)) + call go#util#EchoWarning(printf('could not apply changes to %s', l:fname)) continue endif