Skip to content

Commit

Permalink
Add allowIncomplete to runtime.executeCode()
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Feb 15, 2025
1 parent 46c6d38 commit ff3047e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/vscode/src/@types/hooks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ declare module 'positron' {
executeCode(
languageId: string,
code: string,
focus: boolean
focus: boolean,
allowIncomplete: boolean
): Thenable<boolean>;
}

Expand Down
2 changes: 1 addition & 1 deletion apps/vscode/src/host/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function hooksExtensionHost(): ExtensionHost {
// Our callback executes each block sequentially
const callback = async () => {
for (const block of blocks) {
await runtime.executeCode(language, block, false);
await runtime.executeCode(language, block, false, true);
}
}

Expand Down

0 comments on commit ff3047e

Please sign in to comment.