Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions module/PowerShellEditorServices/Start-EditorServices.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ param(
[switch]
$DebugServiceOnly,

[switch]
$LanguageServiceOnly,

[string[]]
$AdditionalModules,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ public StartEditorServicesCommand()
[Parameter]
public SwitchParameter DebugServiceOnly { get; set; }

/// <summary>
/// When set, do not enable debug adapter, only the language service.
/// </summary>
[Parameter]
public SwitchParameter LanguageServiceOnly { get; set; }

/// <summary>
/// When set with a debug build, startup will wait for a debugger to attach.
/// </summary>
Expand Down Expand Up @@ -465,6 +471,12 @@ private ITransportConfig GetDebugServiceTransport()
{
_logger.Log(PsesLogLevel.Diagnostic, "Configuring debug transport");

if (LanguageServiceOnly)
{
_logger.Log(PsesLogLevel.Diagnostic, "No Debug transport: PSES is language service only");
return null;
}

if (Stdio)
{
if (DebugServiceOnly)
Expand Down