Palate for VS Code
Shows Palate's findings in the editor and installs the SPICE, SWEETS, and SALTY documents. It runs the Palate command-line tool, which does the work.
It runs in every window with a folder open, and lives in the status bar, bottom right:
- In a project without Palate, the status bar reads Initialize. Clicking it shows what
palate init would install or change, and installs it once you agree.
- Once Palate is installed, the status bar shows a palette. Clicking it opens a menu of every command; hovering over it shows what the last check and verify found, with links to the common commands. The palette turns to the error colour, with the number of errors, when the last check or verify found errors.
Right-click the status bar to hide it in a project that does not use Palate.
| Command |
What it does |
| Palate: Initialize |
Shows what palate init would install or change, and installs it once you agree |
| Palate: Check Exception Tags and Records |
Runs palate check and shows its errors and warnings on the lines they concern; also runs when a file is saved |
| Palate: Verify the Principle Documents |
Runs palate verify and shows its problems in the documents |
| Palate: Show Routes for the Working Changes |
Runs palate route, with a task from the Atlas if you name one, and shows the sections to read |
| Palate: Upgrade the Principle Documents |
Shows what palate upgrade would bring in from the master copy, and applies it once you agree |
| Palate: Record the Documents' Identities |
Shows what palate record would record in the principles log, and records it once you agree |
| Palate: Show Commands |
The menu the status bar opens |
| Palate: Show Output |
What Palate's commands printed |
It also treats a project's .palateignore, which names the files Palate leaves out, as an ignore file like .gitignore, so it gets the same highlighting and, in VS Code's default file icon theme, the same icon.
Settings
palate.command: how to run the tool. The default, palate, needs it installed as a .NET tool. To use a checkout of Palate instead, set it to dotnet run --project <path to Palate>/cli/Palate.Cli --.
palate.checkOnSave: whether saving a file runs palate check. On by default.
License
Palate is proprietary software, free to use, under the terms in LICENSE.md.
Building
npm install
npm test
npm run package
npm run package compiles the extension and writes palate-<version>.vsix with vsce, pinned in the development dependencies; Extensions: Install from VSIX… installs it. The status bar and Initialize have been tried in an Extension Development Host.