mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Render multiple URLs in a drop down (#245196)
Fixes https://github.com/microsoft/vscode-copilot/issues/15049
This commit is contained in:
committed by
GitHub
parent
e1dd7f3167
commit
5a1c0842c1
@@ -71,7 +71,11 @@ export class FetchWebPageTool implements IToolImpl {
|
||||
}
|
||||
});
|
||||
|
||||
return { content: this._getPromptPartsForResults(contentsWithUndefined) };
|
||||
return {
|
||||
content: this._getPromptPartsForResults(contentsWithUndefined),
|
||||
// Have multiple results show in the dropdown
|
||||
toolResultDetails: validUris.length > 1 ? validUris : undefined
|
||||
};
|
||||
}
|
||||
|
||||
async prepareToolInvocation(parameters: any, token: CancellationToken): Promise<IPreparedToolInvocation | undefined> {
|
||||
|
||||
Reference in New Issue
Block a user