The merged code is in the process of being cleaned up and re-written, and it requires a change to peek
that has not been mainlined. So, for a few weeks, this source code will be super janky.
Suspenders is a (very) alpha VS Code extension to provide Pants users with some quality-of-workflow improvements.
Note: A lot of this functionality is proof-of-concept, as Pants requires some additions and optimizations to be able to provide a good experience in VS Code. This extension is being used to determine what can be done, and what needs to be added to Pants. As features are added in Pants, those features can remove the "proof-of-concept" label from this extension.
The extension is loaded upon there being a pants.toml
file in the workspace root.
Suspenders 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:
- Run
check
goal on all targets - Run
fmt
goal on all targets - Run
lint
goal on all targets - Run
test
goal on all targets
- Even Better TOML - Provides syntax highlighting for
pants.toml
files, and allows using a Pants.toml JSON schema for validation.
Pants has recently added first-party support for NodeJS/Javascript files (more than just formatters), but there is no Typescript support as of: PANTS_SHA=7fca4215f67b3756bd2ac723cb4cefcf83273ab3 pants fmt ::
.
Any suggestions or issues can be added to the Suspenders Github issue list: https://github.com/RobotPajamas/suspenders/issues