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:
@@ -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'
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user