Anyone should feel free to fork/PR this. Open source for the win! Please make sure and explain your changes thoroughly, update version and changelog where needed.
Note: HubL tags, functions, expression tests and filters are all pulled from the cos-rendering/v1/hubldoc
api, so do not update any snippets/auto-gen/...
json files manually. Run npm run generate
to re-generate these JSON files when HubL changes occur. snippets/man_gen/...
files are for any extra/helpful snippets used in HubL - these files are maintained manually.
git clone
repo- Compile the extension with
npm run dev
- Open this project in Visual Studio Code
- Press
f5
to launch a new VSCode window with the extension installed - Press
CMD
+R
to reload the window after having made any changes
Debugging grammar scopes can be done line-by-line using the VSCode scope inspector.
Note: In order to publish you'll need to be added as a user in the HubSpot Azure Devops organization
- Install the vsce command line tool
- Create a personal access token
- Run
vsce login HubSpot
(case sensitive) - Ensure that you've checked out the lastest work on the
master
branch - Run
vsce publish minor
, which will increment the version number inpackage.json
and publish the extension to the VS Code Marketplace
Configuration