mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 12:59:01 +08:00
go.mod: update google/go-dap to 0.5.0 (#2460)
* go.mod: update google/go-dap to 0.5.0 * Go mod tidy Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>
This commit is contained in:
2
go.mod
2
go.mod
@ -6,7 +6,7 @@ require (
|
||||
github.com/cosiner/argv v0.1.0
|
||||
github.com/cpuguy83/go-md2man v1.0.10 // indirect
|
||||
github.com/creack/pty v1.1.9
|
||||
github.com/google/go-dap v0.4.0
|
||||
github.com/google/go-dap v0.5.0
|
||||
github.com/hashicorp/golang-lru v0.5.4
|
||||
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
||||
github.com/mattn/go-colorable v0.0.0-20170327083344-ded68f7a9561
|
||||
|
||||
17
go.sum
17
go.sum
@ -2,8 +2,6 @@ github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWR
|
||||
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=
|
||||
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
|
||||
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
|
||||
github.com/cosiner/argv v0.0.0-20170225145430-13bacc38a0a5 h1:rIXlvz2IWiupMFlC45cZCXZFvKX/ExBcSLrDy2G0Lp8=
|
||||
github.com/cosiner/argv v0.0.0-20170225145430-13bacc38a0a5/go.mod h1:p/NrK5tF6ICIly4qwEDsf6VDirFiWWz0FenfYBwJaKQ=
|
||||
github.com/cosiner/argv v0.1.0 h1:BVDiEL32lwHukgJKP87btEPenzrrHUjajs/8yzaqcXg=
|
||||
github.com/cosiner/argv v0.1.0/go.mod h1:EusR6TucWKX+zFgtdUsKT2Cvg45K5rtpCcWz4hK06d8=
|
||||
github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk=
|
||||
@ -12,12 +10,8 @@ github.com/creack/pty v1.1.9 h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/google/go-dap v0.2.0 h1:whjIGQRumwbR40qRU7CEKuFLmePUUc2s4Nt9DoXXxWk=
|
||||
github.com/google/go-dap v0.2.0/go.mod h1:5q8aYQFnHOAZEMP+6vmq25HKYAEwE+LF5yh7JKrrhSQ=
|
||||
github.com/google/go-dap v0.3.0 h1:Dc4izN0u4VhZERYrz80f1PSEoDsVfdVmdM/W82CxzFk=
|
||||
github.com/google/go-dap v0.3.0/go.mod h1:5q8aYQFnHOAZEMP+6vmq25HKYAEwE+LF5yh7JKrrhSQ=
|
||||
github.com/google/go-dap v0.4.0 h1:bWSjcM9zp/jEFD4YbWERcHSed8vHbEdk0rmTvqgXDAs=
|
||||
github.com/google/go-dap v0.4.0/go.mod h1:5q8aYQFnHOAZEMP+6vmq25HKYAEwE+LF5yh7JKrrhSQ=
|
||||
github.com/google/go-dap v0.5.0 h1:RMHAVn5xeunBakYk65ggHXttk6qjZVdbmi+xhAoL2wY=
|
||||
github.com/google/go-dap v0.5.0/go.mod h1:5q8aYQFnHOAZEMP+6vmq25HKYAEwE+LF5yh7JKrrhSQ=
|
||||
github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
|
||||
github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
|
||||
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
|
||||
@ -42,8 +36,6 @@ github.com/spf13/pflag v0.0.0-20170417173400-9e4c21054fa1 h1:7bozMfSdo41n2NOc0Gs
|
||||
github.com/spf13/pflag v0.0.0-20170417173400-9e4c21054fa1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
|
||||
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
|
||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||
go.starlark.net v0.0.0-20190702223751-32f345186213 h1:lkYv5AKwvvduv5XWP6szk/bvvgO6aDeUujhZQXIFTes=
|
||||
go.starlark.net v0.0.0-20190702223751-32f345186213/go.mod h1:c1/X6cHgvdXj6pUlmWKMkuqRnW4K8x2vwt6JAaaircg=
|
||||
go.starlark.net v0.0.0-20200821142938-949cc6f4b097 h1:YiRMXXgG+Pg26t1fjq+iAjaauKWMC9cmGFrtOEuwDDg=
|
||||
go.starlark.net v0.0.0-20200821142938-949cc6f4b097/go.mod h1:f0znQkUKRrkk36XxWbGjMqQM8wGv/xHBVE2qc3B5oFU=
|
||||
golang.org/x/arch v0.0.0-20190927153633-4e8777c89be4 h1:QlVATYS7JBoZMVaf+cNjb90WD/beKVHnIxFKT4QaHVI=
|
||||
@ -56,17 +48,12 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEha
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb h1:fgwFCsaw9buMuxNd6+DQfAuSFqbNiQZpcgJQAgJsK6k=
|
||||
golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae h1:Ih9Yo4hSPImZOpfGuA4bR/ORKTAbhZo2AbWNRCnevdo=
|
||||
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191127201027-ecd32218bd7f h1:3MlESg/jvTr87F4ttA/q4B+uhe/q6qleC9/DP+IwQmY=
|
||||
golang.org/x/tools v0.0.0-20191127201027-ecd32218bd7f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20200415034506-5d8e1897c761 h1:FVw4lelfGRNPqB3C8qX1m+QyeM2vzToIwlFhEZX42y8=
|
||||
golang.org/x/tools v0.0.0-20200415034506-5d8e1897c761/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 h1:9zdDQZ7Thm29KFXgAX/+yaf3eVbP7djjWp/dXAppNCc=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||
|
||||
26
vendor/github.com/google/go-dap/codec.go
generated
vendored
26
vendor/github.com/google/go-dap/codec.go
generated
vendored
@ -24,13 +24,14 @@ import (
|
||||
// DecodeProtocolMessageFieldError describes which JSON attribute
|
||||
// has an unsupported value that the decoding cannot handle.
|
||||
type DecodeProtocolMessageFieldError struct {
|
||||
Seq int
|
||||
SubType string
|
||||
FieldName string
|
||||
FieldValue string
|
||||
}
|
||||
|
||||
func (e *DecodeProtocolMessageFieldError) Error() string {
|
||||
return fmt.Sprintf("%s %s '%s' is not supported", e.SubType, e.FieldName, e.FieldValue)
|
||||
return fmt.Sprintf("%s %s '%s' is not supported (seq: %d)", e.SubType, e.FieldName, e.FieldValue, e.Seq)
|
||||
}
|
||||
|
||||
// DecodeProtocolMessage parses the JSON-encoded data and returns the result of
|
||||
@ -50,7 +51,7 @@ func DecodeProtocolMessage(data []byte) (Message, error) {
|
||||
case "event":
|
||||
return decodeEvent(data)
|
||||
default:
|
||||
return nil, &DecodeProtocolMessageFieldError{"ProtocolMessage", "type", protomsg.Type}
|
||||
return nil, &DecodeProtocolMessageFieldError{protomsg.GetSeq(), "ProtocolMessage", "type", protomsg.Type}
|
||||
}
|
||||
}
|
||||
|
||||
@ -69,15 +70,24 @@ func decodeRequest(data []byte) (Message, error) {
|
||||
err := json.Unmarshal(data, requestPtr)
|
||||
return requestPtr, err
|
||||
}
|
||||
return nil, &DecodeProtocolMessageFieldError{"Request", "command", r.Command}
|
||||
return nil, &DecodeProtocolMessageFieldError{r.GetSeq(), "Request", "command", r.Command}
|
||||
}
|
||||
|
||||
// Mapping of request commands and corresponding struct constructors that
|
||||
// can be passed to json.Unmarshal.
|
||||
var requestCtor = map[string]messageCtor{
|
||||
"cancel": func() Message { return &CancelRequest{} },
|
||||
"runInTerminal": func() Message { return &RunInTerminalRequest{} },
|
||||
"initialize": func() Message { return &InitializeRequest{} },
|
||||
"cancel": func() Message { return &CancelRequest{} },
|
||||
"runInTerminal": func() Message { return &RunInTerminalRequest{} },
|
||||
"initialize": func() Message {
|
||||
return &InitializeRequest{
|
||||
Arguments: InitializeRequestArguments{
|
||||
// Set the default values specified here: https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Initialize.
|
||||
LinesStartAt1: true,
|
||||
ColumnsStartAt1: true,
|
||||
PathFormat: "path",
|
||||
},
|
||||
}
|
||||
},
|
||||
"configurationDone": func() Message { return &ConfigurationDoneRequest{} },
|
||||
"launch": func() Message { return &LaunchRequest{} },
|
||||
"attach": func() Message { return &AttachRequest{} },
|
||||
@ -136,7 +146,7 @@ func decodeResponse(data []byte) (Message, error) {
|
||||
err := json.Unmarshal(data, responsePtr)
|
||||
return responsePtr, err
|
||||
}
|
||||
return nil, &DecodeProtocolMessageFieldError{"Response", "command", r.Command}
|
||||
return nil, &DecodeProtocolMessageFieldError{r.GetSeq(), "Response", "command", r.Command}
|
||||
}
|
||||
|
||||
// Mapping of response commands and corresponding struct constructors that
|
||||
@ -198,7 +208,7 @@ func decodeEvent(data []byte) (Message, error) {
|
||||
err := json.Unmarshal(data, eventPtr)
|
||||
return eventPtr, err
|
||||
}
|
||||
return nil, &DecodeProtocolMessageFieldError{"Event", "event", e.Event}
|
||||
return nil, &DecodeProtocolMessageFieldError{e.GetSeq(), "Event", "event", e.Event}
|
||||
}
|
||||
|
||||
// Mapping of event ids and corresponding struct constructors that
|
||||
|
||||
4
vendor/github.com/google/go-dap/io.go
generated
vendored
4
vendor/github.com/google/go-dap/io.go
generated
vendored
@ -95,7 +95,7 @@ func ReadBaseMessage(r *bufio.Reader) ([]byte, error) {
|
||||
// and required:
|
||||
// Content-Length: [0-9]+\r\n\r\n
|
||||
// Extracts and returns the content length.
|
||||
func readContentLengthHeader(r *bufio.Reader) (contentLength int, err error) {
|
||||
func readContentLengthHeader(r *bufio.Reader) (contentLength int64, err error) {
|
||||
// Look for <some header>\r\n\r\n
|
||||
headerWithCr, err := r.ReadString('\r')
|
||||
if err != nil {
|
||||
@ -115,7 +115,7 @@ func readContentLengthHeader(r *bufio.Reader) (contentLength int, err error) {
|
||||
if len(headerAndLength) < 2 {
|
||||
return 0, ErrHeaderNotContentLength
|
||||
}
|
||||
return strconv.Atoi(headerAndLength[1])
|
||||
return strconv.ParseInt(headerAndLength[1], 10, 64)
|
||||
}
|
||||
|
||||
// WriteProtocolMessage encodes message and writes it to w.
|
||||
|
||||
69
vendor/github.com/google/go-dap/schematypes.go
generated
vendored
69
vendor/github.com/google/go-dap/schematypes.go
generated
vendored
@ -12,7 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT: This file is auto-generated.
|
||||
// Code generated by "cmd/gentypes/gentypes.go"; DO NOT EDIT.
|
||||
// DAP spec: https://microsoft.github.io/debug-adapter-protocol/specification
|
||||
// See cmd/gentypes/README.md for additional details.
|
||||
|
||||
@ -166,6 +166,7 @@ type StoppedEventBody struct {
|
||||
PreserveFocusHint bool `json:"preserveFocusHint,omitempty"`
|
||||
Text string `json:"text,omitempty"`
|
||||
AllThreadsStopped bool `json:"allThreadsStopped,omitempty"`
|
||||
HitBreakpointIds []int `json:"hitBreakpointIds,omitempty"`
|
||||
}
|
||||
|
||||
func (e *StoppedEvent) GetEvent() *Event { return &e.Event }
|
||||
@ -374,6 +375,23 @@ type ProgressEndEventBody struct {
|
||||
|
||||
func (e *ProgressEndEvent) GetEvent() *Event { return &e.Event }
|
||||
|
||||
// InvalidatedEvent: This event signals that some state in the debug adapter has changed and requires that the client needs to re-render the data snapshot previously requested.
|
||||
// Debug adapters do not have to emit this event for runtime changes like stopped or thread events because in that case the client refetches the new state anyway. But the event can be used for example to refresh the UI after rendering formatting has changed in the debug adapter.
|
||||
// This event should only be sent if the debug adapter has received a value true for the 'supportsInvalidatedEvent' capability of the 'initialize' request.
|
||||
type InvalidatedEvent struct {
|
||||
Event
|
||||
|
||||
Body InvalidatedEventBody `json:"body"`
|
||||
}
|
||||
|
||||
type InvalidatedEventBody struct {
|
||||
Areas []InvalidatedAreas `json:"areas,omitempty"`
|
||||
ThreadId int `json:"threadId,omitempty"`
|
||||
StackFrameId int `json:"stackFrameId,omitempty"`
|
||||
}
|
||||
|
||||
func (e *InvalidatedEvent) GetEvent() *Event { return &e.Event }
|
||||
|
||||
// RunInTerminalRequest: This optional request is sent from the debug adapter to the client to run a command in a terminal.
|
||||
// This is typically used to launch the debuggee in a terminal provided by the client.
|
||||
// This request should only be called if the client has passed the value true for the 'supportsRunInTerminalRequest' capability of the 'initialize' request.
|
||||
@ -427,14 +445,15 @@ type InitializeRequestArguments struct {
|
||||
ClientName string `json:"clientName,omitempty"`
|
||||
AdapterID string `json:"adapterID"`
|
||||
Locale string `json:"locale,omitempty"`
|
||||
LinesStartAt1 bool `json:"linesStartAt1,omitempty"`
|
||||
ColumnsStartAt1 bool `json:"columnsStartAt1,omitempty"`
|
||||
LinesStartAt1 bool `json:"linesStartAt1"`
|
||||
ColumnsStartAt1 bool `json:"columnsStartAt1"`
|
||||
PathFormat string `json:"pathFormat,omitempty"`
|
||||
SupportsVariableType bool `json:"supportsVariableType,omitempty"`
|
||||
SupportsVariablePaging bool `json:"supportsVariablePaging,omitempty"`
|
||||
SupportsRunInTerminalRequest bool `json:"supportsRunInTerminalRequest,omitempty"`
|
||||
SupportsMemoryReferences bool `json:"supportsMemoryReferences,omitempty"`
|
||||
SupportsProgressReporting bool `json:"supportsProgressReporting,omitempty"`
|
||||
SupportsInvalidatedEvent bool `json:"supportsInvalidatedEvent,omitempty"`
|
||||
}
|
||||
|
||||
// InitializeResponse: Response to 'initialize' request.
|
||||
@ -516,6 +535,7 @@ func (r *RestartRequest) GetRequest() *Request { return &r.Request }
|
||||
|
||||
// RestartArguments: Arguments for 'restart' request.
|
||||
type RestartArguments struct {
|
||||
Arguments interface{} `json:"arguments,omitempty"`
|
||||
}
|
||||
|
||||
// RestartResponse: Response to 'restart' request. This is just an acknowledgement, so no body field is required.
|
||||
@ -542,6 +562,7 @@ func (r *DisconnectRequest) GetRequest() *Request { return &r.Request }
|
||||
type DisconnectArguments struct {
|
||||
Restart bool `json:"restart,omitempty"`
|
||||
TerminateDebuggee bool `json:"terminateDebuggee,omitempty"`
|
||||
SuspendDebuggee bool `json:"suspendDebuggee,omitempty"`
|
||||
}
|
||||
|
||||
// DisconnectResponse: Response to 'disconnect' request. This is just an acknowledgement, so no body field is required.
|
||||
@ -686,13 +707,23 @@ func (r *SetExceptionBreakpointsRequest) GetRequest() *Request { return &r.Reque
|
||||
|
||||
// SetExceptionBreakpointsArguments: Arguments for 'setExceptionBreakpoints' request.
|
||||
type SetExceptionBreakpointsArguments struct {
|
||||
Filters []string `json:"filters"`
|
||||
ExceptionOptions []ExceptionOptions `json:"exceptionOptions,omitempty"`
|
||||
Filters []string `json:"filters"`
|
||||
FilterOptions []ExceptionFilterOptions `json:"filterOptions,omitempty"`
|
||||
ExceptionOptions []ExceptionOptions `json:"exceptionOptions,omitempty"`
|
||||
}
|
||||
|
||||
// SetExceptionBreakpointsResponse: Response to 'setExceptionBreakpoints' request. This is just an acknowledgement, so no body field is required.
|
||||
// SetExceptionBreakpointsResponse: Response to 'setExceptionBreakpoints' request.
|
||||
// The response contains an array of Breakpoint objects with information about each exception breakpoint or filter. The Breakpoint objects are in the same order as the elements of the 'filters', 'filterOptions', 'exceptionOptions' arrays given as arguments. If both 'filters' and 'filterOptions' are given, the returned array must start with 'filters' information first, followed by 'filterOptions' information.
|
||||
// The mandatory 'verified' property of a Breakpoint object signals whether the exception breakpoint or filter could be successfully created and whether the optional condition or hit count expressions are valid. In case of an error the 'message' property explains the problem. An optional 'id' property can be used to introduce a unique ID for the exception breakpoint or filter so that it can be updated subsequently by sending breakpoint events.
|
||||
// For backward compatibility both the 'breakpoints' array and the enclosing 'body' are optional. If these elements are missing a client will not be able to show problems for individual exception breakpoints or filters.
|
||||
type SetExceptionBreakpointsResponse struct {
|
||||
Response
|
||||
|
||||
Body SetExceptionBreakpointsResponseBody `json:"body,omitempty"`
|
||||
}
|
||||
|
||||
type SetExceptionBreakpointsResponseBody struct {
|
||||
Breakpoints []Breakpoint `json:"breakpoints,omitempty"`
|
||||
}
|
||||
|
||||
func (r *SetExceptionBreakpointsResponse) GetResponse() *Response { return &r.Response }
|
||||
@ -1008,7 +1039,8 @@ type PauseResponse struct {
|
||||
|
||||
func (r *PauseResponse) GetResponse() *Response { return &r.Response }
|
||||
|
||||
// StackTraceRequest: The request returns a stacktrace from the current execution state.
|
||||
// StackTraceRequest: The request returns a stacktrace from the current execution state of a given thread.
|
||||
// A client can request all stack frames by omitting the startFrame and levels arguments. For performance conscious clients and if the debug adapter's 'supportsDelayedStackTraceLoading' capability is true, stack frames can be retrieved in a piecemeal way with the startFrame and levels arguments. The response of the stackTrace request may contain a totalFrames property that hints at the total number of frames in the stack. If a client needs this total number upfront, it can issue a request for a single (first) frame and depending on the value of totalFrames decide how to proceed. In any case a client should be prepared to receive less frames than requested, which is an indication that the end of the stack has been reached.
|
||||
type StackTraceRequest struct {
|
||||
Request
|
||||
|
||||
@ -1544,6 +1576,7 @@ type Capabilities struct {
|
||||
SupportsValueFormattingOptions bool `json:"supportsValueFormattingOptions,omitempty"`
|
||||
SupportsExceptionInfoRequest bool `json:"supportsExceptionInfoRequest,omitempty"`
|
||||
SupportTerminateDebuggee bool `json:"supportTerminateDebuggee,omitempty"`
|
||||
SupportSuspendDebuggee bool `json:"supportSuspendDebuggee,omitempty"`
|
||||
SupportsDelayedStackTraceLoading bool `json:"supportsDelayedStackTraceLoading,omitempty"`
|
||||
SupportsLoadedSourcesRequest bool `json:"supportsLoadedSourcesRequest,omitempty"`
|
||||
SupportsLogPoints bool `json:"supportsLogPoints,omitempty"`
|
||||
@ -1558,13 +1591,17 @@ type Capabilities struct {
|
||||
SupportsClipboardContext bool `json:"supportsClipboardContext,omitempty"`
|
||||
SupportsSteppingGranularity bool `json:"supportsSteppingGranularity,omitempty"`
|
||||
SupportsInstructionBreakpoints bool `json:"supportsInstructionBreakpoints,omitempty"`
|
||||
SupportsExceptionFilterOptions bool `json:"supportsExceptionFilterOptions,omitempty"`
|
||||
}
|
||||
|
||||
// ExceptionBreakpointsFilter: An ExceptionBreakpointsFilter is shown in the UI as an option for configuring how exceptions are dealt with.
|
||||
// ExceptionBreakpointsFilter: An ExceptionBreakpointsFilter is shown in the UI as an filter option for configuring how exceptions are dealt with.
|
||||
type ExceptionBreakpointsFilter struct {
|
||||
Filter string `json:"filter"`
|
||||
Label string `json:"label"`
|
||||
Default bool `json:"default,omitempty"`
|
||||
Filter string `json:"filter"`
|
||||
Label string `json:"label"`
|
||||
Description string `json:"description,omitempty"`
|
||||
Default bool `json:"default,omitempty"`
|
||||
SupportsCondition bool `json:"supportsCondition,omitempty"`
|
||||
ConditionDescription string `json:"conditionDescription,omitempty"`
|
||||
}
|
||||
|
||||
// ErrorMessage: A structured message object. Used to return errors from requests.
|
||||
@ -1644,6 +1681,7 @@ type StackFrame struct {
|
||||
Column int `json:"column"`
|
||||
EndLine int `json:"endLine,omitempty"`
|
||||
EndColumn int `json:"endColumn,omitempty"`
|
||||
CanRestart bool `json:"canRestart,omitempty"`
|
||||
InstructionPointerReference string `json:"instructionPointerReference,omitempty"`
|
||||
ModuleId interface{} `json:"moduleId,omitempty"`
|
||||
PresentationHint string `json:"presentationHint,omitempty"`
|
||||
@ -1809,6 +1847,12 @@ type StackFrameFormat struct {
|
||||
IncludeAll bool `json:"includeAll,omitempty"`
|
||||
}
|
||||
|
||||
// ExceptionFilterOptions: An ExceptionFilterOptions is used to specify an exception filter together with a condition for the setExceptionsFilter request.
|
||||
type ExceptionFilterOptions struct {
|
||||
FilterId string `json:"filterId"`
|
||||
Condition string `json:"condition,omitempty"`
|
||||
}
|
||||
|
||||
// ExceptionOptions: An ExceptionOptions assigns configuration options to a set of exceptions.
|
||||
type ExceptionOptions struct {
|
||||
Path []ExceptionPathSegment `json:"path,omitempty"`
|
||||
@ -1852,3 +1896,6 @@ type DisassembledInstruction struct {
|
||||
EndLine int `json:"endLine,omitempty"`
|
||||
EndColumn int `json:"endColumn,omitempty"`
|
||||
}
|
||||
|
||||
// InvalidatedAreas: Logical areas that can be invalidated by the 'invalidated' event.
|
||||
type InvalidatedAreas string
|
||||
|
||||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -4,7 +4,7 @@ github.com/cosiner/argv
|
||||
github.com/cpuguy83/go-md2man/md2man
|
||||
# github.com/creack/pty v1.1.9
|
||||
github.com/creack/pty
|
||||
# github.com/google/go-dap v0.4.0
|
||||
# github.com/google/go-dap v0.5.0
|
||||
github.com/google/go-dap
|
||||
# github.com/hashicorp/golang-lru v0.5.4
|
||||
github.com/hashicorp/golang-lru/simplelru
|
||||
|
||||
Reference in New Issue
Block a user