Close

Start-EditorServices Unofficial Documentation

A project log for Source Code Analysis: PowerShellEditorServices

Source Code Breakdown of PowerShellEditorServices (at the time of v3.5.4)

nicholas-jacksonNicholas Jackson 10/18/2022 at 04:411 Comment

Syntax:

(Summarized from the bootstrapper source code)

Start-EditorServices
      #Common to Every Parameter Set:
      [-HostName <String, Mandatory, Not Null or Empty>]
      [-HostProfileId <String, Mandatory, Not Null or Empty>]
      [-HostVersion <String, Mandatory, Not Null or Empty>]
      [-BundledModulesPath <String, Not Null or Empty>]
      [-LogPath <Not Null or Empty>]
      [-LogLevel <String: "Diagnostic", "Verbose", "Normal", "Warning", "Error"]
      [-SessionDetailsPath <String, Mandatory, Not Null or Empty>]
      [-EnableConsoleRepl <Switch>]
      [-UseLegacyReadLine <Switch>]
      [-DebugServiceOnly <Switch>]
      [-LanguageServiceOnly <Switch>]
      [-AdditionalModules <String[]>]
      [-FeatureFlags <String[]>]
      [-WaitForDebugger <Switch>]
      [-ConfirmInstall <Switch>]

      #NamedPipe Parameter Set (Default):
      [-LanguageServicePipeName = $null <String>]
      [-DebugServicePipeName = $null <String>]

      #Stdio Parameter Set:
      [-Stdio <Switch>]

      #NamedPipeSimplex Parameter Set:
      [-SplitInOutPipes <Switch>]
      [-LanguageServiceInPipeName <String>]
      [-LanguageServiceOutPipeName <String>]
      [-DebugServiceInPipeName = $null <String>]
      [-DebugServiceOutPipeName = $null <String>]

Details:

Synopsis (Also from the bootstrapper source code):

Starts the language and debug services from the PowerShellEditorServices module.

Description (Again, bootstrapper):

PowerShell Editor Services Bootstrapper Script:

This script contains startup logic for the PowerShell Editor Services module when launched by an editor. It handles the following tasks:

Developer/Contributor Details:

Assembly (Loaded by PowerShellEditorServices.psd1, the PSES module)

Assembly Source Code:

Omnisharp Source Code:

Parameters:

HostName (Breakdown):

HostProfileId (Breakdown):

Discussions

Nicholas Jackson wrote 10/30/2022 at 18:26 point

Moved to Instructions and to this Public Gist: https://gist.github.com/smartguy1196/1959ec985968358be20219abe49fdf97

  Are you sure? yes | no