Skip to content

Commit 257a61e

Browse files
committed
refresh file browser after running program
Programs may create new files, so this saves the user from having to click the refresh button in the ev3dev device browser after the program ends in order to see the new file.
1 parent a33bddf commit 257a61e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/extension.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,16 @@ async function handleCustomDebugEvent(event: vscode.DebugSessionCustomEvent): Pr
267267
if (activeDebugSessions.has(event.session.id) && device && device.isConnected) {
268268
device.exec('conrun-kill --signal=SIGKILL');
269269
}
270+
// update remote file browser in case program created new files
271+
refresh();
270272
break;
271273
case 'ev3devBrowser.debugger.interrupt':
272274
device = ev3devBrowserProvider.getDeviceSync();
273275
if (activeDebugSessions.has(event.session.id) && device && device.isConnected) {
274276
device.exec('conrun-kill --signal=SIGINT');
275277
}
278+
// update remote file browser in case program created new files
279+
refresh();
276280
break;
277281
}
278282
}

0 commit comments

Comments
 (0)