Hi there :wave: Is there a `pants.toml` schema def...
# general
s
Hi there 👋 Is there a
pants.toml
schema definition? With that I can have autocomplete on VSCode 🥺
👀 1
w
That's a great question - I don't have an answer, but maybe create a GH ticket for it as a feature request? I would love this feature too - in case we don't have it. Would it be part of the BSP? Or another addition on top? https://www.pantsbuild.org/docs/reference-experimental-bsp (I never really know where auto-complete stuff fits)
h
You could generate a schema out of the data emitted by
./pants help-all
I think?
s
I will not have time to do it, but if anyone is interested, it will be cool to add the schema on https://github.com/schemastore/schemastore/ so VSCode can fetch it automatically 🤔
w
You think anything here could overlap with the shell completions stuff? https://github.com/pantsbuild/pants/pull/16200
@modern-wolf-36228 Does vscode even support toml validation? I know it supports json and yaml, but I haven't seen any toml examples
I think that you need to add an extension for TOML support? https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml#validation