aboutsummaryrefslogtreecommitdiff
path: root/runtime/compiler/powershell.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/compiler/powershell.vim')
-rw-r--r--runtime/compiler/powershell.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/compiler/powershell.vim b/runtime/compiler/powershell.vim
index 3d37d7c847..d5dd692096 100644
--- a/runtime/compiler/powershell.vim
+++ b/runtime/compiler/powershell.vim
@@ -6,6 +6,7 @@
" 2024 Apr 03 by the Vim Project (removed :CompilerSet definition)
" 2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg)
" 2024 Nov 19 by the Vim Project (properly escape makeprg setting)
+" 2025 Mar 11 by the Vim Project (add comment for Dispatch)
if exists("current_compiler")
finish
@@ -50,6 +51,8 @@ let s:makeprg = g:ps1_makeprg_cmd .. ' %:p:S'
" + CategoryInfo : ObjectNotFound: (Write-Ouput:String) [], CommandNotFoundException
" + FullyQualifiedErrorId : CommandNotFoundException
+" CompilerSet makeprg=pwsh
+" CompilerSet makeprg=powershell
execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' \|"')
" Showing error in context with underlining.