mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-16 01:25:41 -05:00
Initial commit of SqlTools Service API
This commit is contained in:
43
ServiceHost/DebugAdapter/SetBreakpointsRequest.cs
Normal file
43
ServiceHost/DebugAdapter/SetBreakpointsRequest.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// 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
|
||||
{
|
||||
/// <summary>
|
||||
/// SetBreakpoints request; value of command field is "setBreakpoints".
|
||||
/// Sets multiple breakpoints for a single source and clears all previous breakpoints in that source.
|
||||
/// To clear all breakpoint for a source, specify an empty array.
|
||||
/// When a breakpoint is hit, a StoppedEvent (event type 'breakpoint') is generated.
|
||||
/// </summary>
|
||||
public class SetBreakpointsRequest
|
||||
{
|
||||
public static readonly
|
||||
RequestType<SetBreakpointsRequestArguments, SetBreakpointsResponseBody> Type =
|
||||
RequestType<SetBreakpointsRequestArguments, SetBreakpointsResponseBody>.Create("setBreakpoints");
|
||||
}
|
||||
|
||||
public class SetBreakpointsRequestArguments
|
||||
{
|
||||
public Source Source { get; set; }
|
||||
|
||||
public SourceBreakpoint[] Breakpoints { get; set; }
|
||||
}
|
||||
|
||||
public class SourceBreakpoint
|
||||
{
|
||||
public int Line { get; set; }
|
||||
|
||||
public int? Column { get; set; }
|
||||
|
||||
public string Condition { get; set; }
|
||||
}
|
||||
|
||||
public class SetBreakpointsResponseBody
|
||||
{
|
||||
public Breakpoint[] Breakpoints { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user