Skip to content

Commit 71922fa

Browse files
fix: upload to device should not check disconnected devices by default
1 parent f15caed commit 71922fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ class Commands {
615615
*/
616616
uploadPrompt: async (uri) => {
617617
const project = this.pymakr.vscodeHelpers.coerceProject(uri);
618-
const devices = await this.pymakr.vscodeHelpers.devicePicker(project?.devices);
618+
const devices = await this.pymakr.vscodeHelpers.devicePicker(project?.devices.filter((d) => d.connected.get()));
619619

620620
const getRelativeFromProject = () => relative(project.folder, uri.fsPath).replace(/\\+/, "/");
621621
const getBasename = () => `/${uri.fsPath.replace(/.*[/\\]/g, "")}`;

0 commit comments

Comments
 (0)