DavesCodeMusings / mpremote-vscode

Visual Studio Code extension for mpremote Python module
BSD 2-Clause "Simplified" License
11 stars 1 forks source link

Some commands lack parameters when run from command palette (part 2) #13

Closed DavesCodeMusings closed 1 year ago

DavesCodeMusings commented 1 year ago

Some commands rely on context to determine the local file path. When right-clicking the file in VS Code explorer to run the command, the path is provided via the context of the file or editor window that was right-clicked. When using CTRL+ALT+P, this context information is missing, so the command fails.

Solution would be to use active editor window path if it exists. Otherwise, a message to open a file first.

DavesCodeMusings commented 1 year ago

Fixed in 1.21.2