diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 136adeb..7218030 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -730,6 +730,7 @@ echo "Hello, world!\\n"; repl: "SHELL=/usr/bin/pwsh pwsh", main: "main.ps1", run: "SHELL=/usr/bin/pwsh pwsh -NoExit main.ps1", + lsp: `pwsh -NoLogo -NoProfile -Command "/opt/powershell-editor-services/PowerShellEditorServices/Start-EditorServices.ps1 -BundledModulesPath /opt/powershell-editor-services -LogPath '$PWD/.powershell-editor-services/lsp.log' -SessionDetailsPath '$PWD/.powershell-editor-services/session.json' -FeatureFlags @() -AdditionalModules @() -HostName Riju -HostProfileId 'riju' -HostVersion 0.0 -Stdio -LogLevel Normal"`, template: `Write-Host "Hello, world!" `, }, diff --git a/scripts/docker-install-phase5.bash b/scripts/docker-install-phase5.bash index 58aee57..d017710 100755 --- a/scripts/docker-install-phase5.bash +++ b/scripts/docker-install-phase5.bash @@ -92,6 +92,10 @@ tar -xf powershell-*.tar.gz -C /opt/powershell ln -s /opt/powershell/pwsh /usr/bin/pwsh rm powershell-*.tar.gz +wget -nv https://github.com/PowerShell/PowerShellEditorServices/releases/download/v2.2.0/PowerShellEditorServices.zip +unzip PowerShellEditorServices.zip +mv PowerShellEditorServices /opt/powershell-editor-services + # Python xml="$(curl -sSL "https://pvsc.blob.core.windows.net/python-language-server-stable?restype=container&comp=list&prefix=Python-Language-Server-linux-x64")" nupkg="$(echo "$xml" | grep -Eo 'https://[^<]+\.nupkg' | tail -n1)"