Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions autoload/codeium/server.vim
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,17 @@ function! s:UnzipAndStart(status) abort
set shellquote= shellpipe=\| shellxquote=
set shellcmdflag=-NoLogo\ -NoProfile\ -ExecutionPolicy\ RemoteSigned\ -Command
set shellredir=\|\ Out-File\ -Encoding\ UTF8
call system('& { . ' . shellescape(s:root . '/powershell/gzip.ps1') . '; Expand-File ' . shellescape(s:bin . '.gz') . ' }')
" Restore old settings.
let &shell = old_shell
let &shellquote = old_shellquote
let &shellpipe = old_shellpipe
let &shellxquote = old_shellxquote
let &shellcmdflag = old_shellcmdflag
let &shellredir = old_shellredir
try
call system('& { . ' . shellescape(s:root . '/powershell/gzip.ps1') . '; Expand-File ' . shellescape(s:bin . '.gz') . ' }')
finally
" Restore old settings.
let &shell = old_shell
let &shellquote = old_shellquote
let &shellpipe = old_shellpipe
let &shellxquote = old_shellxquote
let &shellcmdflag = old_shellcmdflag
let &shellredir = old_shellredir
endtry
else
if !executable('gzip')
call codeium#log#Error('Failed to extract language server binary: missing `gzip`.')
Expand Down