Skip to content

Commit

Permalink
add newline slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerLeonhardt committed May 18, 2019
1 parent df10a54 commit 87c0e8d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions autoload/coc/powershell/utils.vim
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@ function! s:getAvailablePowerShellExecutables ()
let paths = []
if(s:is_win)
call add(paths, {
versionName: "Windows PowerShell",
executablePath: "C:\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"

})
\ versionName: "Windows PowerShell",
\ executablePath: "C:\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
\ })

let psCoreInstallPath = "C:\\System32\\PowerShell\\"
if(isdirectory(psCoreInstallPath))
let psCoreExePaths = split(glob(psCoreInstallPath . "**\\pwsh.exe"), "\n")
if(!empty(psCoreExePaths))
call add(paths, {
versionName: "PowerShell Core",
executablePath: psCoreExePaths[0]
})
\ versionName: "PowerShell Core",
\ executablePath: psCoreExePaths[0]
\ })
endif
endif

Expand Down

0 comments on commit 87c0e8d

Please sign in to comment.