tamasfe / taplo

A TOML toolkit written in Rust
https://taplo.tamasfe.dev
MIT License
1.26k stars 108 forks source link

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

Open SpontanCombust opened 3 weeks ago

SpontanCombust commented 3 weeks ago

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",