microsoft / microsoft/debug-adapter-protocol

Formalize a few more things in the json?

Aperta
#167 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

feature-request
Lingua principale
HTML
Stelle
1.8k
Fork
173
Merge medio
7g 7h
PR unite (30g)
2

Descrizione

Hello,

While making a parser for the DAP json, there were a few things that currently exist only as free-form text that I believe would be better to be also represented as formal json data, for tool consumption:

The request type that a response type is associated with.

This is currently is indicated by the sentence Response to <the request type>, such as RunInTerminalResponse: "description": "Response to 'runInTerminal' request."

Default values for fields.

There are a few fields that indicate what their default value should be, but only in free-form text:

(873):          "description": "If true all line numbers are 1-based (default)."
(877):          "description": "If true all column numbers are 1-based (default)."
(882):          "description": "Determines in what format paths are specified. The default is 'path', which is the native format."
(3413):          "description": "Datatype of values in this column.  Defaults to 'string' if not specified."

Would it be possible to extend the schema to also include this information as dedicated fields in the JSON?
If you have a syntax for both items I could submit a PR.

Thanks

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Esamina lo schema JSON di DAP e le descrizioni delle risposte e dei campi identificate nell’issue. Definisci campi dello schema dedicati per i tipi di richiesta di risposta e i valori predefiniti, con una sintassi coerente che sostituisca le informazioni disponibili esclusivamente in formato libero.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
json
Ambito
api
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.