LSP-PowerShellEditorServices
Convenience plugin to install and upgrade the PowerShellEditorServices language server
Details
Installs
- Total 3K
- Win 3K
- Mac 319
- Linux 338
Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 3 | 6 | 3 | 6 | 7 | 5 | 4 | 2 | 6 | 4 | 3 | 1 | 4 | 2 | 7 | 3 | 2 | 2 | 2 | 7 | 5 | 3 | 4 | 8 | 0 | 3 | 2 | 2 | 4 | 3 | 2 | 2 | 1 | 7 | 4 | 6 | 4 | 2 | 4 | 0 | 3 | 2 | 2 | 5 | 4 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
LSP-PowerShellEditorServices
Convenience plugin to install and run the PowerShellEditorServices language server.
Installation
Install a PowerShell runtime (e.g. you can run
powershell.exe
(Windows) orpwsh
(macOS/Linux) in your terminal).Install PowerShell package for syntax highlighting.
Alternatively, you may use Michael Lyons' PowerShell syntax rewrite.Install LSP from Package Control.
Install LSP-PowerShellEditorServices from Package Control.
Note
The plugin does not distribute but download language server binaries
- from: https://github.com/PowerShell/PowerShellEditorServices/releases/
- to:
$DATA/Package Storage
Configuration
Open configuration file
by running Preferences: LSP-PowerShellEditorServices Settings
from Command Palette
or via Main Menu (Preferences > Package Settings > LSP > Servers > LSP-PowerShellEditorServices
).
Global Script Analysis Settings File
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1"
By default language server looks up script analysis settings in workspace folders, only.
- A given relative path is resolved with workspace folders as root.
- An absolute path can be specified to force usage of a certain settings file.
To provide both a global fallback and project specific files …
- specify an absolute path in
LSP-PowerShellEditorServices.sublime-settings
.
{
"settings":
{
"powershell.scriptAnalysis.settingsPath": "${packages}/User/PSScriptAnalyzerSettings.psd1",
},
}
- specify a relative path in project specific settings via
<My Project>.sublime-project
.
{
"folders": [
{
"path": ".",
},
],
"settings":
{
"LSP":
{
"PowerShellEditorServices": {
"settings": {
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1",
},
},
},
},
}