Skip to content

Commit fbd1cf1

Browse files
committed
fix bug where restarting the sketch loses the running state
1 parent afc2f59 commit fbd1cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/setupConsole.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function setupConsole(context: ExtensionContext) {
4949
proc.on('close', (code) => {
5050
provider.webview?.webview.postMessage({ type: 'close', value: code?.toString() });
5151
sketchProcesses.splice(sketchProcesses.indexOf(proc), 1);
52-
commands.executeCommand('setContext', 'processing.sketch.running', false);
52+
commands.executeCommand('setContext', 'processing.sketch.running', sketchProcesses.length > 0);
5353
});
5454
provider.webview?.show?.(true);
5555
provider.webview?.webview.postMessage({ type: 'clear'});

0 commit comments

Comments
 (0)