Skip to content

Commit

Permalink
use serializable type for cached owner (#13729)
Browse files Browse the repository at this point in the history
  • Loading branch information
amunger authored Jun 19, 2023
1 parent 4876847 commit b4e6fc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/interactive-window/interactiveWindowProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/interactive-window/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export interface IInteractiveWindow extends IInteractiveBase {
}

export interface IInteractiveWindowCache {
owner: Resource;
owner: string;
mode: InteractiveWindowMode;
uriString: string;
inputBoxUriString: string;
Expand Down

0 comments on commit b4e6fc2

Please sign in to comment.