forked from PowerShell/PowerShellEditorServices
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add BreakpointEvent to be sent when breakpoints change in session
This change adds the BreakpointEvent message type to the debug adapter and wires it up to be sent anytime breakpoints change in the editing session. This allows the user to call Set-PSBreakpoint in the integrated console to add new breakpoints and then see them be set in the editor UI. Resolves PowerShell/vscode-powershell#660
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/PowerShellEditorServices.Protocol/DebugAdapter/BreakpointEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
// | ||
|
||
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol; | ||
|
||
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter | ||
{ | ||
public class BreakpointEvent | ||
{ | ||
public static readonly | ||
EventType<BreakpointEvent> Type = | ||
EventType<BreakpointEvent>.Create("breakpoint"); | ||
|
||
public string Reason { get; set; } | ||
|
||
public Breakpoint Breakpoint { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters