Add a Convert JSON to type
language server action
#4330
JosephTLyons
started this conversation in
Ideas & suggestions
Replies: 1 comment
-
Very useful! I'm not sure that having it be part of the language server is the best way forward though. It would mean making the compiler understand a superset of Gleam syntax which includes JSON and any other formats we'd want to support. That doesn't seem like something the core tooling of the language should do. There are existing language-agnostic tools for thing, such as quicktype. Perhaps adding Gleam support to them would be a practical way to do this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When writing Rust with
rust-analyzer
, you can paste JSON into a Rust file and use an action to convert it into valid Rust. If possible, an equivalent action for Gleam would be wonderful.Screen.Recording.2025-03-11.at.12.59.15.PM.mov
Beta Was this translation helpful? Give feedback.
All reactions