fix(coding-agent): attach source info to resources and commands, fixes #1734
This commit is contained in:
@@ -179,8 +179,13 @@ function createExtensionAPI(
|
||||
runtime.refreshTools();
|
||||
},
|
||||
|
||||
registerCommand(name: string, options: Omit<RegisteredCommand, "name">): void {
|
||||
extension.commands.set(name, { name, ...options });
|
||||
registerCommand(name: string, options: Omit<RegisteredCommand, "name" | "extensionPath">): void {
|
||||
extension.commands.set(name, {
|
||||
name,
|
||||
extensionPath: extension.path,
|
||||
sourceInfo: extension.sourceInfo,
|
||||
...options,
|
||||
});
|
||||
},
|
||||
|
||||
registerShortcut(
|
||||
|
||||
Reference in New Issue
Block a user