File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,12 @@ function! OmniSharp#Install(...) abort
431
431
let l: location = shellescape (OmniSharp#util#ServerDir ())
432
432
433
433
if has (' win32' )
434
- let l: logfile = s: plugin_root_dir . ' \log\install.log'
434
+ if exists (' g:OmniSharp_vim_log_dir' )
435
+ let l: log_dir = g: OmniSharp_vim_log_dir
436
+ else
437
+ let l: log_dir = s: plugin_root_dir . ' \log'
438
+ end
439
+ let l: logfile = l: log_dir . ' \install.log'
435
440
let l: script = shellescape (
436
441
\ s: plugin_root_dir . ' \installer\omnisharp-manager.ps1' )
437
442
let l: version_file_location = l: location . ' \OmniSharpInstall-version.txt'
@@ -440,7 +445,12 @@ function! OmniSharp#Install(...) abort
440
445
\ ' powershell -ExecutionPolicy Bypass -File %s %s -l %s %s' ,
441
446
\ l: script , l: http , l: location , l: version )
442
447
else
443
- let l: logfile = s: plugin_root_dir . ' /log/install.log'
448
+ if exists (' g:OmniSharp_vim_log_dir' )
449
+ let l: log_dir = g: OmniSharp_vim_log_dir
450
+ else
451
+ let l: log_dir = s: plugin_root_dir . ' /log'
452
+ end
453
+ let l: logfile = l: log_dir . ' /install.log'
444
454
let l: script = shellescape (
445
455
\ s: plugin_root_dir . ' /installer/omnisharp-manager.sh' )
446
456
let l: mono = g: OmniSharp_server_use_mono ? ' -M' : ' '
You can’t perform that action at this time.
0 commit comments