(command:string)
| 38 | |
| 39 | // Register the commands that can be called from the extension's package.json |
| 40 | const commandHandler = (command:string) => { |
| 41 | const config = vscode.workspace.getConfiguration('chatgpt'); |
| 42 | const prompt = config.get(command) as string; |
| 43 | provider.search(prompt); |
| 44 | }; |
| 45 | |
| 46 | |
| 47 | const commandAsk = vscode.commands.registerCommand('chatgpt.ask', () => { |