Skip to content

Commit

Permalink
feat(amazonq): support .hbs, .gjs, .gts, .astro, .mdx, .erb, .rake, .…
Browse files Browse the repository at this point in the history
…svelte files in /dev (#6523)

## Problem

The following filetypes are not currently supported in `/dev`:

- .hbs (Handlebars)
- .gjs/.gts (Glimmer JavaScript/Glimmer TypeScript)
- .astro/.mdx (Astro)
- .svelte (Svelte)
- .erb/.rake (Ruby)

## Solution

Add .hbs, .gjs, .gts, .astro, .mdx, .svelte, .erb, and .rake to list of
supported file extensions

---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
  • Loading branch information
dknutsen authored Feb 7, 2025
1 parent 750770f commit b398769
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Feature",
"description": "Amazon Q /dev: support `.hbs`, `.gjs`, `.gts`, `.astro`, `.mdx`, `.svelte`, `.erb`, `.rake` files"
}
8 changes: 8 additions & 0 deletions packages/core/src/shared/filetypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export const codefileExtensions = new Set([
'.ads',
'.apl',
'.asm',
'.astro',
'.awk',
'.b',
'.bas',
Expand Down Expand Up @@ -195,6 +196,7 @@ export const codefileExtensions = new Set([
'.el',
'.elm',
'.env',
'.erb',
'.erl',
'.ex',
'.exs',
Expand All @@ -211,6 +213,7 @@ export const codefileExtensions = new Set([
'.fsx',
'.gd',
'.gitignore',
'.gjs',
'.go',
'.gql',
'.gradle',
Expand All @@ -220,9 +223,11 @@ export const codefileExtensions = new Set([
'.gsp',
'.gst',
'.gsx',
'.gts',
'.gvy',
'.h',
'.hack',
'.hbs',
'.hh',
'.hpp',
'.hrl',
Expand Down Expand Up @@ -253,6 +258,7 @@ export const codefileExtensions = new Set([
'.mak',
'.makefile',
'.md',
'.mdx',
'.mjs',
'.ml',
'.mli',
Expand Down Expand Up @@ -289,6 +295,7 @@ export const codefileExtensions = new Set([
'.pyw',
'.qs',
'.r',
'.rake',
'.raku',
'.rakumod',
'.rakutest',
Expand Down Expand Up @@ -331,6 +338,7 @@ export const codefileExtensions = new Set([
'.ss',
'.st',
'.sv',
'.svelte',
'.svg',
'.swift',
'.t',
Expand Down

0 comments on commit b398769

Please sign in to comment.