Add setting to ignore 'Append link' when no files are open #702
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #701
Implements the feature to ignore the
Append link
option in Templates when no file is open, allowing file creation to proceed regardless. This feature is controlled by a new setting added to the Template choices.ignoreAppendLinkWhenNoActiveFile
to theITemplateChoice
interface to support the feature.TemplateChoiceEngine.ts
to check the new setting and the presence of an active file before attempting to append a link, logging a warning if no active file is found and the setting is not enabled.templateChoiceBuilder.ts
to include UI elements for enabling or disabling theignoreAppendLinkWhenNoActiveFile
setting, ensuring it is only displayed when theAppend link
option is enabled.TemplateChoice.md
to include information about the new setting, explaining its purpose and how it affects the behavior of theAppend link
option.For more details, open the Copilot Workspace session.