Skip to content

Conversation

@chhoumann
Copy link
Owner

@chhoumann chhoumann commented Jun 23, 2024

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.

  • Adds a new boolean property ignoreAppendLinkWhenNoActiveFile to the ITemplateChoice interface to support the feature.
  • Modifies 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.
  • Updates templateChoiceBuilder.ts to include UI elements for enabling or disabling the ignoreAppendLinkWhenNoActiveFile setting, ensuring it is only displayed when the Append link option is enabled.
  • Updates the documentation in TemplateChoice.md to include information about the new setting, explaining its purpose and how it affects the behavior of the Append link option.

For more details, open the Copilot Workspace session.

@vercel
Copy link

vercel bot commented Jun 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quickadd ✅ Ready (Inspect) Visit Preview Jun 23, 2024 9:11am

@chhoumann
Copy link
Owner Author

I'll fix this in another PR

@chhoumann chhoumann closed this Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants