Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setting to ignore 'Append link' when no files are open #702

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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

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.

1 participant