gentypes

command
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

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. 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.

Documentation

Overview

gentypes generates Go types from debugProtocol.json

Usage:

$ gentypes <path to debugProtocol.json>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL