Home:ALL Converter>Cannot use Powershell intellisense in Sublime Text 3 with LSP

Cannot use Powershell intellisense in Sublime Text 3 with LSP

Ask Time:2019-11-24T23:35:45         Author:George

Json Formatter

my LSP.sublime-settings is below

// Settings in here override those in "LSP/LSP.sublime-settings",

{
        "powershell-ls":
    {
        "command":
        [
            "powershell.exe",
            "-NoLogo",
            "-NoProfile",
            "-NonInteractive",
            "-ExecutionPolicy",
            "Bypass",
            "-Command",
            "C:\\Users\\georg\\Downloads\\PowerShellEditorServices\\PowerShellEditorServices\\Start-EditorServices.ps1",
            "-LogPath",
            "C:\\Users\\georg\\Downloads\\PowerShellEditorServices\\pses-sublime.log",
            "-LogLevel",
            "Normal",
            "-SessionDetailsPath",
            "C:\\Users\\georg\\Downloads\\PowerShellEditorServices\\session.json",
            "-FeatureFlags",
            "@()",
            "-HostName",
            "'Sublime Text'",
            "-HostProfileId",
            "subl",
            "-HostVersion",
            "1.0.0",
            "-AdditionalModules",
            "@()",
            "-BundledModulesPath",
            "C:\\Users\\georg\\Downloads\\PowerShellEditorServices",
            "-Stdio"
        ],
        "enabled": true,
        "languageId": "powershell",
        "scopes":
        [
            "source.powershell"
        ],
        "syntaxes":
        [
            "Packages/PowerShell/Support/PowershellSyntax.tmLanguage"
        ]
    }

}

Root location of PowerShellEditorServices: C:\Users\georg\Downloads\

When I click LSP: Setup language server, message below shows LSP has no built-in configuration for a Powershellsyntax language server

Using Powershell 5.1 on Windows 10 x64, with generated help files. Link for Powershell config template for Sublime editor: https://github.com/tomv564/LSP/blob/master/docs/index.md

Author:George,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/59019332/cannot-use-powershell-intellisense-in-sublime-text-3-with-lsp
yy