aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/powershell_es.lua
diff options
context:
space:
mode:
authorfl3pp <20628550+fl3pp@users.noreply.github.com>2023-02-10 08:31:28 +0100
committerGitHub <noreply@github.com>2023-02-10 15:31:28 +0800
commitb5bb6e3d7c775c241726d1ef564902263e93e2cd (patch)
tree5e506359166dbc3535f12fcbcad86581ee81e651 /lua/lspconfig/server_configurations/powershell_es.lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-b5bb6e3d7c775c241726d1ef564902263e93e2cd.tar
nvim-lspconfig-b5bb6e3d7c775c241726d1ef564902263e93e2cd.tar.gz
nvim-lspconfig-b5bb6e3d7c775c241726d1ef564902263e93e2cd.tar.bz2
nvim-lspconfig-b5bb6e3d7c775c241726d1ef564902263e93e2cd.tar.lz
nvim-lspconfig-b5bb6e3d7c775c241726d1ef564902263e93e2cd.tar.xz
nvim-lspconfig-b5bb6e3d7c775c241726d1ef564902263e93e2cd.tar.zst
nvim-lspconfig-b5bb6e3d7c775c241726d1ef564902263e93e2cd.zip
fix(powershell_es): support whitespaces in paths (#2445)
The current configuration does not support whitespaces in paths, which are sometimes present in Windows user profile paths
Diffstat (limited to 'lua/lspconfig/server_configurations/powershell_es.lua')
-rw-r--r--lua/lspconfig/server_configurations/powershell_es.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/powershell_es.lua b/lua/lspconfig/server_configurations/powershell_es.lua
index ac723f43..d4cb7448 100644
--- a/lua/lspconfig/server_configurations/powershell_es.lua
+++ b/lua/lspconfig/server_configurations/powershell_es.lua
@@ -5,7 +5,7 @@ local temp_path = vim.fn.stdpath 'cache'
local function make_cmd(new_config)
if new_config.bundle_path ~= nil then
local command_fmt =
- [[%s/PowerShellEditorServices/Start-EditorServices.ps1 -BundledModulesPath %s -LogPath %s/powershell_es.log -SessionDetailsPath %s/powershell_es.session.json -FeatureFlags @() -AdditionalModules @() -HostName nvim -HostProfileId 0 -HostVersion 1.0.0 -Stdio -LogLevel Normal]]
+ [[& '%s/PowerShellEditorServices/Start-EditorServices.ps1' -BundledModulesPath '%s' -LogPath '%s/powershell_es.log' -SessionDetailsPath '%s/powershell_es.session.json' -FeatureFlags @() -AdditionalModules @() -HostName nvim -HostProfileId 0 -HostVersion 1.0.0 -Stdio -LogLevel Normal]]
local command = command_fmt:format(new_config.bundle_path, new_config.bundle_path, temp_path, temp_path)
return { new_config.shell, '-NoLogo', '-NoProfile', '-Command', command }
end