Skip to content

Commit c278ca0

Browse files
committed
lsp: disambiguate lsp initialization progresss
* Change the "initialize gopls" message to read, "initializing gopls," so that users realize it's a progress message instead of a request for them to take action. * Add a "initialized gopls" message.
1 parent 3ccc6e9 commit c278ca0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/go/lsp.vim

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ function! s:newlsp() abort
157157
endfunction
158158

159159
function! l:lsp.handleInitializeResult(result) dict abort
160+
call go#util#EchoProgress("initialized gopls")
160161
let self.ready = 1
161162
" TODO(bc): send initialized message to the server?
162163

@@ -178,7 +179,7 @@ function! s:newlsp() abort
178179
endwhile
179180

180181
if !self.last_request_id
181-
call go#util#EchoProgress("initialize gopls")
182+
call go#util#EchoProgress("initializing gopls")
182183
" TODO(bc): run a server per module and one per GOPATH? (may need to
183184
" keep track of servers by rootUri).
184185
let l:wd = go#util#ModuleRoot()

0 commit comments

Comments
 (0)