Skip to content

Commit 7dd2042

Browse files
ErrorPower2001mattn
authored andcommitted
feat: Switch to pwsh
1 parent cac5418 commit 7dd2042

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

installer/install-powershell-languageserver.cmd

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ call "%~dp0\run_unzip.cmd" PowerShellEditorServices.zip
77
del PowerShellEditorServices.zip
88
if not exist "%~dp0session" mkdir "%~dp0session"
99

10-
echo @echo off^
11-
12-
setlocal^
13-
14-
set PSES_BUNDLE_PATH=%%~dp0^
15-
16-
set SESSION_TEMP_PATH=%%~dp0session^
17-
18-
powershell -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command ^"%%PSES_BUNDLE_PATH%%\PowerShellEditorServices\Start-EditorServices.ps1 -BundledModulesPath '%%PSES_BUNDLE_PATH%%' -LogPath '%%SESSION_TEMP_PATH%%\logs.log' -SessionDetailsPath '%%SESSION_TEMP_PATH%%\session.json' -FeatureFlags @() -AdditionalModules @() -HostName 'My Client' -HostProfileId 'myclient' -HostVersion 1.0.0 -Stdio -LogLevel Normal^"^
19-
20-
> powershell-languageserver.cmd
10+
(
11+
ECHO @echo off
12+
ECHO setlocal
13+
ECHO set PSES_BUNDLE_PATH=%%~dp0
14+
ECHO set SESSION_TEMP_PATH=%%~dp0session
15+
ECHO pwsh -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command "%%PSES_BUNDLE_PATH%%\PowerShellEditorServices\Start-EditorServices.ps1 -BundledModulesPath '%%PSES_BUNDLE_PATH%%' -LogPath '%%SESSION_TEMP_PATH%%\logs.log' -SessionDetailsPath '%%SESSION_TEMP_PATH%%\session.json' -FeatureFlags @() -AdditionalModules @() -HostName 'My Client' -HostProfileId 'myclient' -HostVersion 1.0.0 -Stdio -LogLevel Normal"
16+
) > powershell-languageserver.cmd

0 commit comments

Comments
 (0)