Skip to content

Commit 4619898

Browse files
scottwritescodekaranA-aws
authored andcommitted
fix(amazon q): add pl/1, bms filetypes aws#6067
## Problem The codefileExtensions does not contain an extension type for `.pli` which is the common extension for PL/1, or for `.bms` which is Basic Mapping Support and common for screen definition files in IBM mainframe. Because of this, the files and code in them are not accessible in the workspace context for Amazon Q using the `/dev` quick action. When using the Q quick action '\dev' for `.pli` or `.bms` files, Q responds with the following message: > This appears to be an empty program or workspace with no source files present. There is nothing to explain at this time since no code or files are available for analysis. ## Solution - Add `.pli` and `.bms` as a known code file extension types.
1 parent 84dcbd8 commit 4619898

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Q feature dev: recognize .bms, .pli code files"
4+
}

packages/core/src/shared/filetypes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export const codefileExtensions = new Set([
161161
'.bash',
162162
'.bat',
163163
'.boo',
164+
'.bms',
164165
'.c',
165166
'.cbl',
166167
'.cc',
@@ -273,6 +274,7 @@ export const codefileExtensions = new Set([
273274
'.pike',
274275
'.pir',
275276
'.pl',
277+
'.pli',
276278
'.pm',
277279
'.pmod',
278280
'.pp',

0 commit comments

Comments
 (0)