From b4e6fc233d6e684e9099b18d028905eec5ff1ccc Mon Sep 17 00:00:00 2001 From: Aaron Munger Date: Mon, 19 Jun 2023 14:38:39 -0700 Subject: [PATCH] use serializable type for cached owner (#13729) --- src/interactive-window/interactiveWindowProvider.ts | 4 ++-- src/interactive-window/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interactive-window/interactiveWindowProvider.ts b/src/interactive-window/interactiveWindowProvider.ts index 3958d808d0e..438ddf6790e 100644 --- a/src/interactive-window/interactiveWindowProvider.ts +++ b/src/interactive-window/interactiveWindowProvider.ts @@ -117,7 +117,7 @@ export class InteractiveWindowProvider implements IInteractiveWindowProvider, IE const result = new InteractiveWindow( this.serviceContainer, - iw.owner, + Uri.parse(iw.owner), new InteractiveControllerFactory(this.controllerHelper, mode), tab, Uri.parse(iw.inputBoxUriString) @@ -319,7 +319,7 @@ export class InteractiveWindowProvider implements IInteractiveWindowProvider, IE const windowCache = this._windows.map( (iw) => ({ - owner: iw.owner, + owner: iw.owner?.toString(), uriString: iw.notebookUri.toString(), inputBoxUriString: iw.inputUri.toString() } as IInteractiveWindowCache) diff --git a/src/interactive-window/types.ts b/src/interactive-window/types.ts index 89ae331b19d..5349dff9e64 100644 --- a/src/interactive-window/types.ts +++ b/src/interactive-window/types.ts @@ -108,7 +108,7 @@ export interface IInteractiveWindow extends IInteractiveBase { } export interface IInteractiveWindowCache { - owner: Resource; + owner: string; mode: InteractiveWindowMode; uriString: string; inputBoxUriString: string;