2020-02-15 19:52:53 +00:00
|
|
|
package dap
|
|
|
|
|
|
|
|
// Unique identifiers for messages returned for errors from requests.
|
|
|
|
const (
|
|
|
|
UnsupportedCommand int = 9999
|
2020-02-26 05:00:54 +00:00
|
|
|
InternalError int = 8888
|
2020-05-01 19:24:44 +00:00
|
|
|
NotYetImplemented int = 7777
|
2020-02-15 19:52:53 +00:00
|
|
|
|
|
|
|
// 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.
|
2020-07-01 18:01:17 +00:00
|
|
|
FailedToContinue = 3000
|
|
|
|
UnableToDisplayThreads = 2003
|
|
|
|
UnableToProduceStackTrace = 2004
|
2020-02-15 19:52:53 +00:00
|
|
|
// Add more codes as we support more requests
|
|
|
|
)
|