SuspendersSuspenders is an alpha VS Code extension to provide Pants users with some quality-of-workflow improvements. This repo contains several proof-of-concepts, as Pants requires some additions and optimizations to be able to provide a good experience in VS Code. However, I've found enough utility in several features (e.g. BUILD LSP and TOML schema), that I would consider this a useful plugin to have for Pants users/developers/maintainers. ActivationThe extension is loaded upon there being a Available FunctionalitySuspenders functionality is very limited at the moment. The preliminary aims are related to streamlining project introspection by creating a view container which shows source roots, targets, etc. In addition, the command palette has been enhanced with several pants specific commands:
BUILD LSPExperimental build file LSP support was added in [PR #105](https://github.com/RobotPajamas/suspenders/pull/105). It currently requires a manual step of opening the command palette and selecting "Pants: Re-generate BUILD LSP data". This generates BUILD file Python stubs, and restarts Pants.toml JSON SchemaThere is already a JSON schema file uploaded to schema store for each minor release of Pants (e.g. https://json.schemastore.org/pantsbuild-2.21.0.json). Users can setup Even Better TOML to point to this schema. Suspenders, however, will generate a The only real difference to the user is that the schema store variant might show autocompletions that aren't available until the user activates a specific backend, while the Suspenders-generated version shouldn't have that use case. Recommended Plugins
Using PantsPants has recently added first-party support for NodeJS/Javascript files (more than just formatters), but there is no Typescript support as of: Important LinksFeature Requests and BugsAny suggestions or issues can be added to the Suspenders Github issue list: https://github.com/RobotPajamas/suspenders/issues |