Skip to content

Commit c7740fc

Browse files
Remove truncation and markdown inline code wrapping from web_fetch URL display
Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/447cbe2f-991b-49d6-b7d3-a13da37dfe52 Co-authored-by: DonJayamanne <1948812+DonJayamanne@users.noreply.github.com>
1 parent ff5b5a4 commit c7740fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/platform/agentHost/node/copilot/copilotToolDisplay.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export function getInvocationMessage(toolName: string, displayName: string, para
253253
case CopilotToolName.WebFetch: {
254254
const args = parameters as ICopilotWebFetchToolArgs | undefined;
255255
if (args?.url) {
256-
return md(localize('toolInvoke.webFetch', "Fetching {0}", appendEscapedMarkdownInlineCode(truncate(args.url, 80))));
256+
return localize('toolInvoke.webFetch', "Fetching {0}", args.url);
257257
}
258258
return localize('toolInvoke.webFetchGeneric', "Fetching web content");
259259
}
@@ -315,7 +315,7 @@ export function getPastTenseMessage(toolName: string, displayName: string, param
315315
case CopilotToolName.WebFetch: {
316316
const args = parameters as ICopilotWebFetchToolArgs | undefined;
317317
if (args?.url) {
318-
return md(localize('toolComplete.webFetch', "Fetched {0}", appendEscapedMarkdownInlineCode(truncate(args.url, 80))));
318+
return localize('toolComplete.webFetch', "Fetched {0}", args.url);
319319
}
320320
return localize('toolComplete.webFetchGeneric', "Fetched web content");
321321
}

0 commit comments

Comments
 (0)