delve/service/dap/error_ids.go
polinasok fbc4623c08
service/dap: Initial implementation for 'dlv dap' (#1858)
* Initial implementation for 'dlv dap'

* Fix Travis and AppVeyor failures

* Address review comments

* Address review comments

* Regenrate documentation

* Replace dap server printfs with log.Error

* Update 'dap log'

* Fix typos

* Revert logflags changes that got mixed in by accident
2020-02-15 11:52:53 -08:00

16 lines
542 B
Go

package dap
// Unique identifiers for messages returned for errors from requests.
const (
UnsupportedCommand int = 9999
// The values below come from the vscode-go debug adaptor.
// Although the spec says they should be unique, the adaptor
// reuses 3000 for launch, attach and program exit failures.
// TODO(polina): confirm if the extension expects specific ids
// for specific cases, and we must match the existing adaptor
// or if these codes can evolve.
FailedToContinue = 3000
// Add more codes as we support more requests
)