mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-22 18:55:56 +00:00
* Add instructions to ensure that new ai features are gated by the right context key * Move instructions to chat-specific
522 B
522 B
applyTo, description
| applyTo | description |
|---|---|
| **/chat/** | Chat feature area coding guidelines |
Adding chat/AI-related features
- 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.enabledvia a when clause. - When doing a code review for code that adds an AI feature, please ensure that the feature is properly gated.