We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6b1d6d commit 7585480Copy full SHA for 7585480
src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt.ts
@@ -117,6 +117,12 @@ export const askToSelectPrompt = async (
117
118
/**
119
* If still no active item present, fall back to the first item in the list.
120
+ * This can happen only if command was invoked not from a focused prompt file
121
+ * (hence the `resource` is not provided in the options).
122
+ *
123
+ * Fixes the two main cases:
124
+ * - when no prompt files found it, pre-selects the documentation link
125
+ * - when there is only a single prompt file, pre-selects it
126
*/
127
if (!activeItem) {
128
activeItem = fileOptions[0];
0 commit comments