Skip to content

Commit 24d8517

Browse files
committed
Enable returns from execute
1 parent 893c51e commit 24d8517

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/extension/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
4545

4646
const api: ICommandBridgeRemote = {
4747
async execute(command: string, args: ReadonlyPartialJSONObject) {
48-
await commands.execute(command, args);
48+
return await commands.execute(command, args);
4949
},
5050
async listCommands() {
5151
return commands.listCommands();

packages/extension/src/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface ICommandBridgeRemote {
1212
* @param command - The name of the command to execute.
1313
* @param args - An object containing arguments for the command.
1414
*/
15-
execute(command: string, args: ReadonlyPartialJSONObject): void;
15+
execute(command: string, args: ReadonlyPartialJSONObject): Promise<any>;
1616

1717
/**
1818
* Lists all available commands.

0 commit comments

Comments
 (0)