From 80e90754dc2ff4ce2b6548595ea7bf8d01836296 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Mon, 7 Jul 2025 14:52:06 -0700 Subject: [PATCH] Also add chat debug view warning to CONTRIBUTING.md (#144) --- extensions/copilot/CONTRIBUTING.md | 4 +++- .../src/extension/prompt/vscode-node/requestLoggerImpl.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/copilot/CONTRIBUTING.md b/extensions/copilot/CONTRIBUTING.md index cf423e4faa5..4d5900d8061 100644 --- a/extensions/copilot/CONTRIBUTING.md +++ b/extensions/copilot/CONTRIBUTING.md @@ -294,10 +294,12 @@ We have now moved to https://github.com/microsoft/vscode-tree-sitter-wasm for WA ### Reading requests -To easily see the details of requests made by Copilot Chat, run the command "Show Chat Debug View". This will show a treeview with an entry for each request made. You can see the prompt that was sent to the model, the tools that were enabled, the response, and other key details. Always read the prompt when making any changes, to ensure that it's being rendered as you expect! +To easily see the details of requests made by Copilot Chat, run the command "Show Chat Debug View". This will show a treeview with an entry for each request made. You can see the prompt that was sent to the model, the tools that were enabled, the response, and other key details. Always read the prompt when making any changes, to ensure that it's being rendered as you expect! You can save the request log with right click > "Export As...". The view also has entries for tool calls on their own, and a prompt-tsx debug view that opens in the Simple Browser. +> 🚨 **Note**: This log is also very helpful in troubleshooting issues, and we will appreciate if you share it when filing an issue about the agent's behavior. But, this log may contain personal information such as the contents of your files or terminal output. Please review the contents carefully before sharing it with anyone else. + ## API updates When updating VS Code proposed extension API that is used by the extension, we have two tools to make sure that the version of the extension that gets installed will be compatible with the version of VS Code: the `engines.vscode` field in `package.json`, and the proposed API version. diff --git a/extensions/copilot/src/extension/prompt/vscode-node/requestLoggerImpl.ts b/extensions/copilot/src/extension/prompt/vscode-node/requestLoggerImpl.ts index bc9f188c8c5..f6733728a83 100644 --- a/extensions/copilot/src/extension/prompt/vscode-node/requestLoggerImpl.ts +++ b/extensions/copilot/src/extension/prompt/vscode-node/requestLoggerImpl.ts @@ -211,7 +211,7 @@ export class RequestLogger extends AbstractRequestLogger { } const result: string[] = []; - result.push(`> 🚨 Note: This log may contain personal information such as the contents of your files or terminal output. Please review the contents before sharing publicly.`); + result.push(`> 🚨 Note: This log may contain personal information such as the contents of your files or terminal output. Please review the contents carefully before sharing.`); result.push(`# ${entry.debugName} - ${id}`); result.push(``);