You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VSCode allows us to extend JSON Schemas. This great feature provides developers the ability to feed custom stores to different JSON files. The JSON Language Server can digest externally provided stores and in-turn gives one validations, hover descriptions and various intellisense capabilities.
I use tsup in a couple of projects and tend to favor the package.json configuration option but doing so I sacrifice the native TS completions supplied through typing declarations. Anyway, I like intelliSense capabilities and wrote a basic store for tsup (below).
Something like this is not worth a PR as it an opt-in. I wanted to (at the very least) drop this here and maybe it will be of use to the project of users who seek such features.
Extending Schemas in VSCode
Within workspace settings you need to simply point to store file and inform vscode to contribute this extensions to package.jsonfiles:
Below is a Schema Store that can be used the will provide all the options tsup exposes for package.json configuration usage (ie: function options are omitted).
On Jun 19, 2022, at 16:01, Alexis Tyler ***@***.***> wrote:
This would be great as an extension so that everyone that uses tsup can install the extension and get better intellisense. 😄
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
VSCode allows us to extend JSON Schemas. This great feature provides developers the ability to feed custom stores to different JSON files. The JSON Language Server can digest externally provided stores and in-turn gives one validations, hover descriptions and various intellisense capabilities.
I use tsup in a couple of projects and tend to favor the
package.json
configuration option but doing so I sacrifice the native TS completions supplied through typing declarations. Anyway, I like intelliSense capabilities and wrote a basic store for tsup (below).Something like this is not worth a PR as it an opt-in. I wanted to (at the very least) drop this here and maybe it will be of use to the project of users who seek such features.
Extending Schemas in VSCode
Within workspace settings you need to simply point to store file and inform vscode to contribute this extensions to
package.json
files:Workspace Settings
JSON Schema Store
Below is a Schema Store that can be used the will provide all the options tsup exposes for
package.json
configuration usage (ie: function options are omitted).Result
Screen.Recording.2022-06-10.at.19.00.01.mov
The text was updated successfully, but these errors were encountered: