More cleanly handle PowerShell LSP session file
This commit is contained in:
parent
257a59a66c
commit
9f68c11506
1 changed files with 5 additions and 1 deletions
|
@ -53,7 +53,11 @@ const lspServers = [
|
||||||
name: 'PowerShellEditorServices',
|
name: 'PowerShellEditorServices',
|
||||||
filetype: 'ps1',
|
filetype: 'ps1',
|
||||||
path: exepath('pwsh'),
|
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')),
|
installed: () => executable('pwsh') && filereadable(expand('~/.cache/powershell/PowerShellEditorServices/Start-EditorServices.ps1')),
|
||||||
install: [
|
install: [
|
||||||
'mkdir -p ~/.cache/powershell',
|
'mkdir -p ~/.cache/powershell',
|
||||||
|
|
Loading…
Reference in a new issue