Editor support for AXIM storefront themes you work on locally with the axim CLI.
It turns on by itself in any folder axim pull has written (one holding .axim-theme/manifest.json). There is nothing to configure.
What it does
Go to definition (Ctrl+click or F12) from any name a template uses to the file and line that defines it: block tags such as <MiniCart>, handlers in on… attributes and {% load %}, function resources, variables and their keys, and a page's layout in its settings file. Hooks and library components open their reference page in .axim-theme/docs, or the copy shipped with the extension.
Hover shows where a name comes from: the file path of a block, function or variable, and the signature, state key and summary of a hook.
Autocomplete for everything a template can reference: import sources after } from, the names of each source, imported block and library tags, handler names, hooks in {% load %}, and variables with their keys.
Links on the names of import lines open the file each one names.
Warnings on a name a template uses without importing it. At runtime it is undefined or renders nothing; the warning names the import line to add.
axim check problems appear in the Problems panel and as squiggles, the same list the CLI prints. They refresh when you save, and when files are created, deleted, renamed or moved between folders.
It works alongside VS Code's own HTML, CSS, JavaScript and JSON support and does not change the language of any file.
Folders are organisation only: blocks/Header/MiniCart.html is still the block MiniCart, imported as import { MiniCart } from components.
Install
From the VS Code Marketplace or Open VSX: search for Axim Theme.
From a .vsix file: code --install-extension axim-theme.vsix, or Extensions: Install from VSIX… in the command palette.