service/dap: fix typos in comments (#3438)
This commit is contained in:
parent
cbc45e1670
commit
0e3cae9dc9
@ -525,7 +525,7 @@ func (s *Session) ServeDAPCodec() {
|
|||||||
// potentially got some new DAP request that we do not yet have
|
// potentially got some new DAP request that we do not yet have
|
||||||
// decoding support for, so we can respond with an ErrorResponse.
|
// decoding support for, so we can respond with an ErrorResponse.
|
||||||
//
|
//
|
||||||
// Other errors, such as unmarshalling errors, will log the error and cause the server to trigger
|
// Other errors, such as unmarshaling errors, will log the error and cause the server to trigger
|
||||||
// a stop.
|
// a stop.
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.config.log.Debug("DAP error: ", err)
|
s.config.log.Debug("DAP error: ", err)
|
||||||
@ -588,7 +588,7 @@ func (s *Session) handleRequest(request dap.Message) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// These requests, can be handled regardless of whether the targret is running
|
// These requests, can be handled regardless of whether the target is running
|
||||||
switch request := request.(type) {
|
switch request := request.(type) {
|
||||||
case *dap.InitializeRequest: // Required
|
case *dap.InitializeRequest: // Required
|
||||||
s.onInitializeRequest(request)
|
s.onInitializeRequest(request)
|
||||||
|
|||||||
@ -2147,7 +2147,7 @@ func TestVariablesLoading(t *testing.T) {
|
|||||||
checkChildren(t, tm, "tm", 1)
|
checkChildren(t, tm, "tm", 1)
|
||||||
ref = checkVarExact(t, tm, 0, "v", "tm.v", "[]map[string]main.astruct len: 1, cap: 1, [[...]]", "[]map[string]main.astruct", hasChildren)
|
ref = checkVarExact(t, tm, 0, "v", "tm.v", "[]map[string]main.astruct len: 1, cap: 1, [[...]]", "[]map[string]main.astruct", hasChildren)
|
||||||
if ref > 0 {
|
if ref > 0 {
|
||||||
// Auto-loading of fully missing map chidlren happens here, but they get truncated at MaxArrayValuess
|
// Auto-loading of fully missing map chidlren happens here, but they get truncated at MaxArrayValues
|
||||||
client.VariablesRequest(ref)
|
client.VariablesRequest(ref)
|
||||||
tmV := client.ExpectVariablesResponse(t)
|
tmV := client.ExpectVariablesResponse(t)
|
||||||
checkChildren(t, tmV, "tm.v", 1)
|
checkChildren(t, tmV, "tm.v", 1)
|
||||||
|
|||||||
@ -239,7 +239,7 @@ type AttachConfig struct {
|
|||||||
LaunchAttachCommonConfig
|
LaunchAttachCommonConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
// unmarshalLaunchAttachArgs wraps unmarshalling of launch/attach request's
|
// unmarshalLaunchAttachArgs wraps unmarshaling of launch/attach request's
|
||||||
// arguments attribute. Upon unmarshal failure, it returns an error massaged
|
// arguments attribute. Upon unmarshal failure, it returns an error massaged
|
||||||
// to be suitable for end-users.
|
// to be suitable for end-users.
|
||||||
func unmarshalLaunchAttachArgs(input json.RawMessage, config interface{}) error {
|
func unmarshalLaunchAttachArgs(input json.RawMessage, config interface{}) error {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user