Skip to content

Commit

Permalink
feat(ux): show some loading indication
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezcarlosjr committed Nov 19, 2023
1 parent a127c26 commit d2290ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/notebook/cellTypes/languages/Cpp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Language} from "./language";
import {Observable, shareReplay} from "rxjs";
import {Extension} from "@codemirror/state";
import {cpp} from "@codemirror/lang-cpp";
import {autocompletion, CompletionContext, CompletionResult} from "@codemirror/autocomplete"
Expand Down Expand Up @@ -39,8 +38,8 @@ export class Cpp extends Language {
hostWrite: (output: string) => this.write(output),
hostRead: () => prompt()
});
this.clear();
api.compileLinkRun(this.mostRecentCode).then(console.log).catch(console.error);
super.dispatchShellRun();
api.compileLinkRun(this.mostRecentCode).then(console.log).catch(console.error).finally(() => super.stop());
return true;
}

Expand Down

0 comments on commit d2290ba

Please sign in to comment.