Skip to content

Commit

Permalink
don't register server twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Sachanowicz committed Nov 9, 2023
1 parent 8e73d8c commit 0a6f436
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ function! lsp#register_server(server_info) abort
let l:server_name = a:server_info['name']
if has_key(s:servers, l:server_name)
call lsp#log('lsp#register_server', 'server already registered', l:server_name)
return
endif
" NOTE: workspace_folders is dict for faster lookup instead of array
let s:servers[l:server_name] = {
Expand Down

0 comments on commit 0a6f436

Please sign in to comment.