Skip to content

Commit

Permalink
feat: Add glimmer support (#85)
Browse files Browse the repository at this point in the history
* feat: activate on glimmer langs

* feat: parse diagnostics from glint

* docs: add support in readme

* docs: clarify hbs support
  • Loading branch information
IgnaceMaes committed Jan 5, 2024
1 parent 92869bd commit dd8e522
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ and [more](https://www.youtube.com/playlist?list=PL0rc4JAdEsVpOriHzlAG7KUnhKIK9c
- JSDoc type errors (in `.js` and `.jsx` files)
- React, Solid and Qwik errors (in `.tsx` and `.mdx` files)
- Astro, Svelte and Vue files when TypeScript is enabled (in `.astro`, `.svelte` and `.vue` files)
- Ember and Glimmer TypeScript errors and template issues reported by Glint (in `.hbs`, `.gjs`, and `.gts` files)


## Installation
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
"onLanguage:astro",
"onLanguage:svelte",
"onLanguage:vue",
"onLanguage:mdx"
"onLanguage:mdx",
"onLanguage:glimmer-js",
"onLanguage:glimmer-ts"
],
"main": "./dist/extension.js",
"browser": "./dist/extension.js",
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function activate(context: ExtensionContext) {
diagnostics
.filter((diagnostic) =>
diagnostic.source
? has(["ts", "deno-ts", "js"], diagnostic.source)
? has(["ts", "deno-ts", "js", "glint"], diagnostic.source)
: false
)
.forEach(async (diagnostic) => {
Expand Down

0 comments on commit dd8e522

Please sign in to comment.