From 0d495357f476a8531e2924277a4a6b1a86eacff2 Mon Sep 17 00:00:00 2001 From: wilson Date: Fri, 9 Aug 2024 14:06:25 -0400 Subject: [PATCH] fix: update file extension list and update mynah to consume minor ui fixes (#5435) ### Problem - Some file types in the file extension list are compiled files, which are irrelevant to use for CodeGen or other purposes. - fixes mynah ui issues: - Command selection fails when switching focus or copy pasting a prompt mynah-ui#87 - VsCode tab scrollbar shrinks height of tabs mynah-ui#90 ### Solution - Update mynah-ui to consume minor bug fixes - fix: prompt quick action handling edge cases mynah-ui#88 - fix: header in card not wrapping mynah-ui#91 - Update file extension allow list to remove compiled file & add a few file types --- package-lock.json | 9 ++++----- .../Bug Fix-7e7eb866-97ae-4d3a-a401-cb265175f4e9.json | 4 ++++ packages/core/package.json | 2 +- packages/core/src/shared/filetypes.ts | 6 ++---- 4 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 packages/amazonq/.changes/next-release/Bug Fix-7e7eb866-97ae-4d3a-a401-cb265175f4e9.json diff --git a/package-lock.json b/package-lock.json index 62c74e60df2..35f863b2d2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3322,11 +3322,10 @@ } }, "node_modules/@aws/mynah-ui": { - "version": "4.15.5", - "resolved": "https://registry.npmjs.org/@aws/mynah-ui/-/mynah-ui-4.15.5.tgz", - "integrity": "sha512-qLeeyzaHgI9V4zet9AarHR1kL0XhHr23wWvucPfl8DcEi4gpnvL5cAUpYWgdMHv3Pmt1aajVyDjNkEGRpezgmA==", + "version": "4.15.6", + "resolved": "https://registry.npmjs.org/@aws/mynah-ui/-/mynah-ui-4.15.6.tgz", + "integrity": "sha512-YzM1l48yYhj1OZvz9yY+CDIT0K5dIcLMf7hubbVjJqHvRyKyNsCotTDF7ZJIq+IWG17mGUlo8X/s2oAhcYvMNg==", "hasInstallScript": true, - "license": "Apache License 2.0", "dependencies": { "escape-html": "^1.0.3", "just-clone": "^6.2.0", @@ -18840,7 +18839,7 @@ "@aws-sdk/property-provider": "3.46.0", "@aws-sdk/smithy-client": "^3.46.0", "@aws-sdk/util-arn-parser": "^3.46.0", - "@aws/mynah-ui": "^4.15.5", + "@aws/mynah-ui": "^4.15.6", "@gerhobbelt/gitignore-parser": "^0.2.0-9", "@iarna/toml": "^2.2.5", "@smithy/middleware-retry": "^2.3.1", diff --git a/packages/amazonq/.changes/next-release/Bug Fix-7e7eb866-97ae-4d3a-a401-cb265175f4e9.json b/packages/amazonq/.changes/next-release/Bug Fix-7e7eb866-97ae-4d3a-a401-cb265175f4e9.json new file mode 100644 index 00000000000..f6694a34151 --- /dev/null +++ b/packages/amazonq/.changes/next-release/Bug Fix-7e7eb866-97ae-4d3a-a401-cb265175f4e9.json @@ -0,0 +1,4 @@ +{ + "type": "Bug Fix", + "description": "Q feature dev: update file extension list and minor UI fixes" +} diff --git a/packages/core/package.json b/packages/core/package.json index 4f435737df4..cd6e8e7074e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -4112,7 +4112,7 @@ "@aws-sdk/property-provider": "3.46.0", "@aws-sdk/smithy-client": "^3.46.0", "@aws-sdk/util-arn-parser": "^3.46.0", - "@aws/mynah-ui": "^4.15.5", + "@aws/mynah-ui": "^4.15.6", "@gerhobbelt/gitignore-parser": "^0.2.0-9", "@iarna/toml": "^2.2.5", "@smithy/middleware-retry": "^2.3.1", diff --git a/packages/core/src/shared/filetypes.ts b/packages/core/src/shared/filetypes.ts index d92bff3c12e..039ce6a7a96 100644 --- a/packages/core/src/shared/filetypes.ts +++ b/packages/core/src/shared/filetypes.ts @@ -159,7 +159,6 @@ export const codefileExtensions = new Set([ '.cfc', '.cfm', '.cjs', - '.class', '.clj', '.cljc', '.cljs', @@ -181,7 +180,6 @@ export const codefileExtensions = new Set([ '.dpr', '.e', '.el', - '.elc', '.elm', '.erl', '.ex', @@ -269,8 +267,6 @@ export const codefileExtensions = new Set([ '.psm1', '.purs', '.py', - '.pyc', - '.pyo', '.pyw', '.qs', '.r', @@ -306,6 +302,7 @@ export const codefileExtensions = new Set([ '.scd', '.scm', '.scss', + '.sass', '.sh', '.shen', '.sig', @@ -337,6 +334,7 @@ export const codefileExtensions = new Set([ '.xi', '.xml', '.yaml', + '.yml', '.zig', ])