mirror of https://github.com/dense-analysis/ale
Merge pull request #2889 from zigford/powershell-7-errorview
Default errorview in pwsh7 now concise
This commit is contained in:
commit
b76165abf6
|
@ -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