Skip to content

Commit 435c200

Browse files
committed
make sure to use await
1 parent dc6dcb5 commit 435c200

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/repl/nativeRepl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class NativeRepl implements Disposable {
7373
if (this.notebookDocument && nb.uri.toString() === this.notebookDocument.uri.toString()) {
7474
this.notebookDocument = undefined;
7575
this.newReplSession = true;
76-
updateWorkspaceStateValue<string | undefined>(NATIVE_REPL_URI_MEMENTO, undefined);
76+
await updateWorkspaceStateValue<string | undefined>(NATIVE_REPL_URI_MEMENTO, undefined);
7777
}
7878
}),
7979
);
@@ -171,7 +171,7 @@ export class NativeRepl implements Disposable {
171171
);
172172
if (notebookEditor) {
173173
this.notebookDocument = notebookEditor.notebook;
174-
updateWorkspaceStateValue<string | undefined>(
174+
await updateWorkspaceStateValue<string | undefined>(
175175
NATIVE_REPL_URI_MEMENTO,
176176
this.notebookDocument.uri.toString(),
177177
);
@@ -192,7 +192,7 @@ export class NativeRepl implements Disposable {
192192
*/
193193
private async cleanRepl(): Promise<void> {
194194
this.notebookDocument = undefined;
195-
updateWorkspaceStateValue<string | undefined>(NATIVE_REPL_URI_MEMENTO, undefined);
195+
await updateWorkspaceStateValue<string | undefined>(NATIVE_REPL_URI_MEMENTO, undefined);
196196
}
197197
}
198198

0 commit comments

Comments
 (0)