Default errorview in pwsh7 now concise

This commit is contained in:
Jesse Harris 2019-11-09 13:43:00 +10:00
parent db6b1b5ecc
commit f09cc26f87

View file

@ -12,6 +12,7 @@ endfunction
" https://rkeithhill.wordpress.com/2007/10/30/powershell-quicktip-preparsing-scripts-to-check-for-syntax-errors/ " https://rkeithhill.wordpress.com/2007/10/30/powershell-quicktip-preparsing-scripts-to-check-for-syntax-errors/
function! ale_linters#powershell#powershell#GetCommand(buffer) abort function! ale_linters#powershell#powershell#GetCommand(buffer) abort
let l:script = ['Param($Script); let l:script = ['Param($Script);
\ $ErrorView = "Normal";
\ trap {$_;continue} & { \ trap {$_;continue} & {
\ $Contents = Get-Content -Path $Script; \ $Contents = Get-Content -Path $Script;
\ $Contents = [string]::Join([Environment]::NewLine, $Contents); \ $Contents = [string]::Join([Environment]::NewLine, $Contents);