Skip to content

Commit

Permalink
DAP: Skip serializing Options when None
Browse files Browse the repository at this point in the history
DAP follows the same strict TypeScript interface syntax as LSP
which states:

> The document uses TypeScript interfaces in strict mode to describe
> these. This means for example that a `null` value has to be explicitly
> listed and that a mandatory property must be listed even if a falsify
> value might exist.

So we have to skip serializing any fields that end in `?` instead
of passing `null`.
  • Loading branch information
the-mikedavis authored and archseer committed Jul 5, 2022
1 parent 936ed3a commit 44f5963
Showing 1 changed file with 168 additions and 6 deletions.
Loading

0 comments on commit 44f5963

Please sign in to comment.