Skip to content

Commit

Permalink
Project import generated by Copybara. (#312)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 8708c2828657463e742a3e75b673d403bcaf88d5

Co-authored-by: Copybara Bot <copybara@exafunction.com>
  • Loading branch information
2 people authored and MissLov3ly committed Feb 13, 2024
1 parent 7cddae1 commit 27eee46
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions autoload/codeium/server.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let s:language_server_version = '1.6.20'
let s:language_server_sha = 'c8aabc8753a3cea9d68cda55f9395290bdf75942'
let s:language_server_version = '1.6.28'
let s:language_server_sha = 'f485965568948013d9f47815917f2f1f3a99089d'
let s:root = expand('<sfile>:h:h:h')
let s:bin = v:null

Expand Down Expand Up @@ -154,7 +154,14 @@ function! codeium#server#Start(...) abort
if !filereadable(s:bin)
call delete(s:bin)
if sha ==# s:language_server_sha
let url = 'https://github.com/Exafunction/codeium/releases/download/language-server-v' . s:language_server_version . '/language_server_' . bin_suffix . '.gz'
let config = get(g:, 'codeium_server_config', {})
if has_key(config, 'portal_url') && !empty(config.portal_url)
let base_url = config.portal_url
else
let base_url = 'https://github.com/Exafunction/codeium/releases/download'
endif
let base_url = substitute(base_url, '/\+$', '', '')
let url = base_url . '/language-server-v' . s:language_server_version . '/language_server_' . bin_suffix . '.gz'
else
let url = 'https://storage.googleapis.com/exafunction-dist/codeium/' . sha . '/language_server_' . bin_suffix . '.gz'
endif
Expand Down

0 comments on commit 27eee46

Please # to comment.