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

@@ -234,6 +234,7 @@ export function createProfile(editorConfig) {
globalReplacements: baseGlobalReplacements,
conversionConfig,
getTargetRuleFilename,
targetExtension,
// Optional lifecycle hooks
...(onAdd && { onAddRulesProfile: onAdd }),
...(onRemove && { onRemoveRulesProfile: onRemove }),