Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema for tspconfig.yaml to help with authoring in IDE #2049

Open
nguerrera opened this issue Jun 12, 2023 · 4 comments
Open

Schema for tspconfig.yaml to help with authoring in IDE #2049

nguerrera opened this issue Jun 12, 2023 · 4 comments
Labels
ide Issues for VS, VSCode, Monaco, etc.
Milestone

Comments

@nguerrera
Copy link
Contributor

It would be nice if the user got some basic completion and docs when editing tspconfig.yaml. I am not sure, but it's possible that our extension can provide a schema to the yaml extension.

It would be fun if we defined this schema in TypeSpec and built it into JSON schema in the build process. :)

@nguerrera
Copy link
Contributor Author

Seems it is possible. See "Mapping a schema in an extension" in https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml

@markcowl markcowl added this to the Backlog milestone Jun 21, 2023
@markcowl
Copy link
Contributor

  • it would be nice if we could figure out a way to pick up schema for included emitters outside the core set

@markcowl markcowl added ide Issues for VS, VSCode, Monaco, etc. 📌 and removed Needs Triage labels Jun 21, 2023
@bterlson bterlson removed the 📌 label May 10, 2024
@RodgeFu
Copy link
Contributor

RodgeFu commented Jun 2, 2024

we should be able to do it by registering our schema to json schema store https://www.schemastore.org/json/

more investigation needed for the emitter's config

@timotheeguerin
Copy link
Member

I think schema might not be the right solution here, instead of depending on another extension, we already parse the config as ast so we should be able to provide our own autocomplete there as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide Issues for VS, VSCode, Monaco, etc.
Projects
None yet
Development

No branches or pull requests

5 participants