More cleanly handle PowerShell LSP session file

This commit is contained in:
Danielle McLean 2024-04-13 14:54:55 +10:00
parent 257a59a66c
commit 9f68c11506
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

@ -53,7 +53,11 @@ const lspServers = [
name: 'PowerShellEditorServices',
filetype: 'ps1',
path: exepath('pwsh'),
args: ['-NoLogo', '-NoProfile', '-Command', expand('~/.cache/powershell/PowerShellEditorServices/Start-EditorServices.ps1') .. ' -Stdio'],
args: [
'-NoLogo', '-NoProfile',
'-Command', expand('~/.cache/powershell/PowerShellEditorServices/Start-EditorServices.ps1'),
' -Stdio', '-SessionDetailsPath', expand('~/.cache/powershell/PowerShellEditorServices/session.json'),
],
installed: () => executable('pwsh') && filereadable(expand('~/.cache/powershell/PowerShellEditorServices/Start-EditorServices.ps1')),
install: [
'mkdir -p ~/.cache/powershell',