Files
vscode/.github/instructions/chat.instructions.md
Rob Lourens 9d9e881649 Add instructions to ensure that new ai features are gated by the right context key (#286603)
* Add instructions to ensure that new ai features are gated by the right context key

* Move instructions to chat-specific
2026-01-10 19:12:35 +01:00

522 B

applyTo, description
applyTo description
**/chat/** Chat feature area coding guidelines
  • When adding a new chat/AI feature like a new surface where chat or agents appear, a new AI command, etc, these features must not show up for users when they've disabled AI features. The best way to do this is to gate the feature on the context key ChatContextKeys.enabled via a when clause.
  • When doing a code review for code that adds an AI feature, please ensure that the feature is properly gated.