Skip to content

Commit

Permalink
fix(amazon q): add pl/1, bms filetypes #6067
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
scottwritescode authored Dec 2, 2024
1 parent 0536f09 commit 591dc9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Feature",
"description": "Q feature dev: recognize .bms, .pli code files"
}
2 changes: 2 additions & 0 deletions packages/core/src/shared/filetypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export const codefileExtensions = new Set([
'.bash',
'.bat',
'.boo',
'.bms',
'.c',
'.cbl',
'.cc',
Expand Down Expand Up @@ -267,6 +268,7 @@ export const codefileExtensions = new Set([
'.pike',
'.pir',
'.pl',
'.pli',
'.pm',
'.pmod',
'.pp',
Expand Down

0 comments on commit 591dc9a

Please sign in to comment.