Skip to content

Commit f09d05b

Browse files
committed
fix context menus
1 parent 9906b38 commit f09d05b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

arduino-ide-extension/src/browser/widgets/cloud-sketchbook/cloud-sketchbook-contributions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export class CloudSketchbookContribution extends Contribution {
298298
x: container.getBoundingClientRect().left,
299299
y: container.getBoundingClientRect().top + container.offsetHeight,
300300
},
301-
args: arg,
301+
args: [arg],
302302
};
303303
this.contextMenuRenderer.render(options);
304304
},
@@ -345,7 +345,7 @@ export class CloudSketchbookContribution extends Contribution {
345345
container.getBoundingClientRect().top -
346346
3.5 * container.offsetHeight,
347347
},
348-
args: arg,
348+
args: [arg],
349349
};
350350
this.contextMenuRenderer.render(options);
351351
},

arduino-ide-extension/src/browser/widgets/sketchbook/sketchbook-widget-contribution.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,14 @@ export class SketchbookWidgetContribution
173173
);
174174
}
175175

176+
debugger;
176177
const options: RenderContextMenuOptions = {
177178
menuPath: SKETCHBOOK__CONTEXT,
178179
anchor: {
179180
x: container.getBoundingClientRect().left,
180181
y: container.getBoundingClientRect().top + container.offsetHeight,
181182
},
182-
args: arg,
183+
args: [arg],
183184
};
184185
this.contextMenuRenderer.render(options);
185186
},

0 commit comments

Comments
 (0)