Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add Language Support for extensions not on NPM? #188

Open
liamfoneill opened this issue Feb 16, 2022 · 1 comment
Open

How to add Language Support for extensions not on NPM? #188

liamfoneill opened this issue Feb 16, 2022 · 1 comment

Comments

@liamfoneill
Copy link

I'm new to JS so please forgive me if this is a silly question 😁

I would like to add Syntax support for Hashicorp Terraform (HCL) and Azure Bicep. In VS Code adding syntax highlighting is achieved by installing the following extensions:

Bicep: https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep
Terraform: https://marketplace.visualstudio.com/items?itemName=HashiCorp.terraform

I can't find the equivalent of either of these on NPM so not sure how to proceed.

@andrewbranch
Copy link
Owner

The README covers this: https://github.com/andrewbranch/gatsby-remark-vscode#using-languages-and-themes-from-an-extension

You still use npm but it reads from GitHub. Unfortunately some GH repos don’t behave well with this (e.g. if they need a build step to generate the JSON/YAML grammar files), in which case you’d have to build it yourself and bundle the result with your project, which is also mentioned in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants