Skip to content

Commit a44c842

Browse files
Merge pull request #89 from codesandbox/expose-is-up-to-date
feat: add property to check if VM is up to date
2 parents ec8f5eb + 5468182 commit a44c842

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sandbox.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ export class SandboxSession extends Disposable {
111111
this.addDisposable(this.pitcherClient);
112112
}
113113

114+
/**
115+
* Check if the VM agent process is up to date. To update a restart is required
116+
*/
117+
get isUpToDate() {
118+
return this.pitcherClient.isUpToDate();
119+
}
120+
114121
/**
115122
* The ID of the sandbox.
116123
*/

0 commit comments

Comments
 (0)