You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for fetching release notes by version and update VscodePrompt to handle multiple versions (#859)
* Add support for fetching release notes by version and update VscodePrompt to handle multiple versions
* Skip metaprompt test suite for vscode panel
* Remove obsolete vscode metaprompt panel test data
* Remove skipped metaprompt panel test cases from baseline.json
@@ -157,7 +176,7 @@ export class VscodePrompt extends PromptElement<VscodePromptProps, VscodePromptS
157
176
If an extension might help the user, you may suggest a search query for the extension marketplace. You must also include the command **Search marketplace** (`workbench.extensions.search`) with args set to the suggested query in the commands section at the end of your response. The query can also contain the tags "@popular", "@recommended", or "@featured" to filter the results.<br/>
158
177
The user is working on a {operatingSystem} machine. Please respond with system specific commands if applicable.<br/>
159
178
If a command or setting is not a valid answer, but it still relates to Visual Studio Code, please still respond.<br/>
160
-
If the question is about release notes, you must respond with the release notes of the latest Visual Studio Code release. You must also include the command **Show release notes** (`update.showCurrentReleaseNotes`) in the commands section at the end of your response.<br/>
179
+
If the question is about release notes, you must also include the command **Show release notes** (`update.showCurrentReleaseNotes`) in the commands section at the end of your response.<br/>
161
180
If the response includes a command, only reference the command description in the description. Do not include the actual command in the description.<br/>
162
181
All responses for settings and commands code blocks must strictly adhere to the template shown below:<br/>
@@ -397,7 +419,11 @@ class VscodeMetaPrompt extends PromptElement<VscodeMetaPromptProps> {
397
419
Determine if the user's question is about the editor, terminal, activity bar, side bar, status bar, panel or other parts of Visual Studio Code's workbench and include those keyword in the rewrite.<br/>
398
420
Determine if the user is asking about Visual Studio Code's Commands and/or Settings and explicitly include those keywords during the rewrite. <br/>
399
421
If the question does not clearly indicate whether it pertains to a command or setting, categorize it as an ‘Other Question’ <br/>
400
-
If the user is asking about Visual Studio Code Release Notes, simply respond with "release_notes" in your response and do not try to rephrase the question <br/>
422
+
If the user is asking about Visual Studio Code Release Notes, respond using this exact protocol and do not rephrase the question: <br/>
423
+
- Respond with only one of the following: `release_notes@latest` or `release_notes@last3`.<br/>
424
+
- If the user does not specify a timeframe, respond with: `release_notes@latest`.<br/>
425
+
- If the request is vague about a timeframe (e.g., "recent changes"), respond with: `release_notes@last3` to consider the last three versions (major.minor).<br/>
426
+
- If the user asks to find or locate a specific change/feature in the release notes, respond with: `release_notes@last3` to search across the last three versions (major.minor).<br/>
401
427
If the user is asking about Extensions available in Visual Studio Code, simply respond with "vscode_extensions"<br/>
402
428
If the user is asking about Visual Studio Code API or Visual Studio Code Extension Development, simply respond with "vscode_api"<br/>
403
429
Remove any references to "What" or "How" and instead rewrite the question as a description of the command or setting that the user is trying to find. <br/>
@@ -435,7 +461,12 @@ class VscodeMetaPrompt extends PromptElement<VscodeMetaPromptProps> {
435
461
User: latest released features<br/>
436
462
<br/>
437
463
Assistant:<br/>
438
-
release_notes<br/>
464
+
release_notes@latest<br/>
465
+
<br/>
466
+
User: What are the recent changes?<br/>
467
+
<br/>
468
+
Assistant:<br/>
469
+
release_notes@last3<br/>
439
470
<br/>
440
471
User: set up python<br/>
441
472
<br/>
@@ -468,3 +499,17 @@ function parseMetaPromptResponse(originalQuestion: string, response: string): st
0 commit comments