Skip to content

Commit

Permalink
Update non-windows installer
Browse files Browse the repository at this point in the history
  • Loading branch information
sgur committed Nov 16, 2023
1 parent 77c2623 commit 4a7fe5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions installer/install-powershell-languageserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

set -e

curl -L -o PowerShellEditorServices.zip "https://github.com/PowerShell/PowerShellEditorServices/releases/download/v2.1.0/PowerShellEditorServices.zip"
VERSION=3.14.0
curl -L -o PowerShellEditorServices.zip "https://github.com/PowerShell/PowerShellEditorServices/releases/download/v$VERSION/PowerShellEditorServices.zip"
unzip PowerShellEditorServices.zip
rm PowerShellEditorServices.zip
mkdir session
Expand All @@ -11,7 +12,7 @@ cat <<EOF >powershell-languageserver
#!/bin/sh
DIR=\$(cd \$(dirname \$0); pwd)
PSES_BUNDLE_PATH=\$DIR/PowerShellEditorServices
PSES_BUNDLE_PATH=\$DIR
SESSION_TEMP_PATH=\$DIR/session
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"
EOF
Expand Down

0 comments on commit 4a7fe5b

Please sign in to comment.