Skip to content

Commit

Permalink
Merge pull request #6 from corbob/Centralize-PSES-Logs
Browse files Browse the repository at this point in the history
Move PSES log to PSES folder
  • Loading branch information
Yatao Li authored Apr 18, 2019
2 parents c6ccd69 + b759a72 commit 04f44d4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions plugin/coc-pses.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ let s:vimscript_dir = expand('<sfile>:p:h')
let g:pses_dir = resolve(expand(s:vimscript_dir . '/../PowerShellEditorServices/PowerShellEditorServices'))
let g:pses_script = g:pses_dir . "/Start-EditorServices.ps1"

" Let the user specify the log directory for PSES.
" If the user doesn't specify a location, use the root of vov-pses in a .pses
" directory.
if(!exists("g:pses_logs_dir"))
let g:pses_logs_dir = resolve(expand(s:vimscript_dir . '/../.pses/logs/' . strftime('%Y%m%d') . '-' . getpid()))
endif

if(!exists("g:pses_powershell_executable"))
let g:pses_powershell_executable = "powershell"
if(executable("pwsh"))
Expand All @@ -23,12 +30,12 @@ function! s:PSESSetup ()
\ "-HostName", "coc.vim",
\ "-HostProfileId", "0",
\ "-HostVersion", "2.0.0",
\ "-LogPath", ".pses/log.txt",
\ "-LogPath", g:pses_logs_dir . "/log.txt",
\ "-LogLevel", "Diagnostic",
\ "-FeatureFlags", "[]",
\ "-BundledModulesPath", g:pses_dir . "/../",
\ "-Stdio",
\ "-SessionDetailsPath", ".pses/session"
\ "-SessionDetailsPath", g:pses_logs_dir . "/session"
\ ]
\ }
\ }
Expand Down

0 comments on commit 04f44d4

Please sign in to comment.