Skip to content

feat(vscode): add quicktype.csharp.framework setting (System.Text.Json default) - #3545

Open
mrviduus wants to merge 1 commit into
glideapps:masterfrom
mrviduus:vscode-csharp-framework
Open

mrviduus wants to merge 1 commit into
glideapps:masterfrom
mrviduus:vscode-csharp-framework

Conversation

@mrviduus

@mrviduus mrviduus commented Nov 1, 2026

Copy link
Copy Markdown

What

  • New VS Code setting quicktype.csharp.framework: SystemTextJson (default) | NewtonSoft. Passed through to quicktype-core's existing C# framework renderer option.
  • README entry for the setting.

Why

The extension hardcodes core's default, so every C# paste emits Newtonsoft.Json and requires a NuGet package. System.Text.Json is built into .NET Core 3+/.NET 5+, so the generated code works with zero dependencies. This was requested in quicktype-vscode#44 (now archived) and is related to #2958.

Note on default

Default is SystemTextJson, which changes output for existing C# users of the extension. Happy to flip it to NewtonSoft for backwards compatibility if preferred; one-line change in package.json.

Testing

  • tsc for packages/quicktype-vscode passes, Biome clean.
  • Same change verified end-to-end against the archived standalone repo with @vscode/test-electron: pasted JSON into a C# document with each framework value and with the setting unset, asserted using System.Text.Json / using Newtonsoft.Json accordingly.
  • No generated-output change in core, so no fixture changes.

🤖 Generated with Claude Code

…Text.Json

Exposes quicktype-core's C# framework renderer option in the VS Code
extension. Default SystemTextJson so generated code needs no NuGet
package; NewtonSoft remains available.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant