mirror of https://github.com/dense-analysis/ale
Default errorview in pwsh7 now concise
This commit is contained in:
parent
db6b1b5ecc
commit
f09cc26f87
|
@ -12,6 +12,7 @@ endfunction
|
|||
" https://rkeithhill.wordpress.com/2007/10/30/powershell-quicktip-preparsing-scripts-to-check-for-syntax-errors/
|
||||
function! ale_linters#powershell#powershell#GetCommand(buffer) abort
|
||||
let l:script = ['Param($Script);
|
||||
\ $ErrorView = "Normal";
|
||||
\ trap {$_;continue} & {
|
||||
\ $Contents = Get-Content -Path $Script;
|
||||
\ $Contents = [string]::Join([Environment]::NewLine, $Contents);
|
||||
|
|
Loading…
Reference in New Issue