MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / commandHandler

Function commandHandler

hyperagent-ext/src/extension.ts:40–44  ·  view source on GitHub ↗
(command:string)

Source from the content-addressed store, hash-verified

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', () => {

Callers 1

activateFunction · 0.85

Calls 2

getMethod · 0.80
searchMethod · 0.45

Tested by

no test coverage detected