Skip to content

Commit 7491810

Browse files
feat: added debugMenu
1 parent 797a60e commit 7491810

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@
358358
}
359359
],
360360
"commands": [
361+
{
362+
"command": "pymakr.showDebugMenu",
363+
"title": "Shows debugging menu",
364+
"category": "PyMakr"
365+
},
361366
{
362367
"command": "pymakr.openOnDevice",
363368
"title": "Open file on device",

src/commands/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ class Commands {
3838
}
3939

4040
commands = {
41+
// debugPrintAdapterQueue: () => {
42+
// this.pymakr.devicesStore.get().forEach((device) => console.log(device.name, device.adapter.__proxyMeta));
43+
// },
44+
showDebugMenu: async () => {
45+
const options = {
46+
"log adapter queue": "log adapter queue",
47+
};
48+
const result = await vscode.window.showQuickPick(Object.keys(options));
49+
50+
if (result === options["log adapter queue"])
51+
this.pymakr.devicesStore.get().forEach((device) => console.log(device.name, device.adapter.__proxyMeta));
52+
},
53+
4154
/**
4255
*
4356
* @param {vscode.Uri} file

0 commit comments

Comments
 (0)