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

Name of the contributed schema in VSCode (Even Better TOML) #617

Open
SpontanCombust opened this issue Jun 8, 2024 · 1 comment
Open

Comments

@SpontanCombust
Copy link

When I open up a TOML file for which I have created a schema in the bottom right of VSCode's window the Even Better TOML extension shows an entire URL to that schema.
screenshot

Is there a way for it to show just a short name/title that I give it in the schema itself without having to upload it to schema stores? Pretty much all other schemas that I can choose from in the selection popup have a short name.

I contribute the schema via my extension using the tomlValidation contribution point

"tomlValidation": [{
    "fileMatch": "witcherscript.toml",
    "url": "https://raw.githubusercontent.com/SpontanCombust/witcherscript-ide/dev/schemas/witcherscript.toml.schema.json"
}]

This is the excerpt from the beginning of my schema file:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "witcherscript.toml",
  "description": "WitcherScript IDE project manifest",
@panekj
Copy link
Collaborator

panekj commented Aug 21, 2024

Is there a way for it to show just a short name/title that I give it in the schema itself without having to upload it to schema stores?

Currently there isn't

Pretty much all other schemas that I can choose from in the selection popup have a short name.

That's because all those schemas provide name in schema catalog (https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/api/json/catalog.json)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants