Skip to content

Commit e445ce0

Browse files
committed
Fix issue #137: Manim session could not be started.
1 parent 398fdf8 commit e445ce0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/manimShell.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,8 @@ export class ManimShell {
809809
window.onDidEndTerminalShellExecution(
810810
async (event: vscode.TerminalShellExecutionEndEvent) => {
811811
if (this.shellWeTryToSpawnIn === event.terminal) {
812+
if (event.execution.commandLine.value.split(" ")[0] !== "manimgl")
813+
return;
812814
Logger.debug("❌ Tried to spawn a new Manim session, but it failed");
813815
this.eventEmitter.emit(ManimShellEvent.MANIM_NOT_STARTED);
814816
this.resetActiveShell();

0 commit comments

Comments
 (0)