fix(profiles): fix vscode profile generation (#1027)

* fix(profiles): fix vscode profile generation

- Add .instructions.md extension for VSCode Copilot instructions file.
- Add customReplacement to remove unsupported property `alwaysApply` from YAML front-matter in VSCode instructions files.
- Add missing property `targetExtension` to the base profile object to
  support the change to file extension.

* chore: run format

---------

Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
This commit is contained in:
Andre Silva
2025-07-21 16:17:57 -03:00
committed by GitHub
parent 8781794c56
commit 6ae66b2afb
6 changed files with 18 additions and 10 deletions

View File

@@ -35,10 +35,10 @@ describe('VSCode Profile Initialization Functionality', () => {
expect(Array.isArray(vscodeProfile.globalReplacements)).toBe(true);
});
test('vscode.js configures .mdc to .md extension mapping', () => {
test('vscode.js configures .mdc to .instructions.md extension mapping', () => {
// Check that the profile object has the correct file mapping behavior (vscode converts to .md)
expect(vscodeProfile.fileMap['rules/cursor_rules.mdc']).toBe(
'vscode_rules.md'
'vscode_rules.instructions.md'
);
});