File: README.md

package info (click to toggle)
golang-github-google-go-dap 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 500 kB
  • sloc: sh: 19; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
The schema for DAP messages is defined in JSON at
https://github.com/microsoft/vscode-debugadapter-node/blob/main/debugProtocol.json

The auto-generated TypeScript representation of the schema is at
https://github.com/microsoft/vscode-debugadapter-node/blob/main/protocol/src/debugProtocol.ts

----

In this directory we have a copy of the schema, which is licensed by Microsoft
with a [MIT
License](https://github.com/microsoft/vscode-debugadapter-node/blob/main/License.txt).
This copy must be updated whenever the schema changes.

To generate Go types from the schema, run:

```
$ go run cmd/gentypes/gentypes.go cmd/gentypes/debugProtocol.json > schematypes.go
```

The generated ``schematypes.go`` is also checked in, so there is no need to
regenerate it unless the schema changes.