I want to write a vscode extension that can launch/trigger GitHub Copilot Chat to the do prompt. The expected use case looks like this:
Source Action with my command, then my command able to send custom prompt to input box of the GitHub Copilot Chat and send it to get results.Is that possible at this moment?
If you want to send a custom prompt to copilot chat you should use workbench command from extension
const prompt = `write two sum with test cases in javascript `
vscode.commands.executeCommand('workbench.action.chat.open', prompt );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With