Skip to content

Commit 591dc9a

Browse files
fix(amazon q): add pl/1, bms filetypes #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 0536f09 commit 591dc9a

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',
@@ -267,6 +268,7 @@ export const codefileExtensions = new Set([
267268
'.pike',
268269
'.pir',
269270
'.pl',
271+
'.pli',
270272
'.pm',
271273
'.pmod',
272274
'.pp',

0 commit comments

Comments
 (0)