mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
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
This commit is contained in:
9
.github/instructions/chat.instructions.md
vendored
Normal file
9
.github/instructions/chat.instructions.md
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
applyTo: '**/chat/**'
|
||||
description: 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.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.
|
||||
Reference in New Issue
Block a user