diff --git a/src/vs/workbench/api/browser/mainThreadEditorTabs.ts b/src/vs/workbench/api/browser/mainThreadEditorTabs.ts index 22e06365994..c410ad77dc0 100644 --- a/src/vs/workbench/api/browser/mainThreadEditorTabs.ts +++ b/src/vs/workbench/api/browser/mainThreadEditorTabs.ts @@ -166,7 +166,8 @@ export class MainThreadEditorTabs implements MainThreadEditorTabsShape { if (editor instanceof InteractiveEditorInput) { return { kind: TabInputKind.InteractiveEditorInput, - uri: editor.resource + uri: editor.resource, + inputBoxUri: editor.inputResource }; } diff --git a/src/vs/workbench/api/common/extHost.protocol.ts b/src/vs/workbench/api/common/extHost.protocol.ts index ccfed3c49c9..8df19f84b76 100644 --- a/src/vs/workbench/api/common/extHost.protocol.ts +++ b/src/vs/workbench/api/common/extHost.protocol.ts @@ -677,6 +677,7 @@ export interface WebviewInputDto { export interface InteractiveEditorInputDto { kind: TabInputKind.InteractiveEditorInput; uri: UriComponents; + inputBoxUri: UriComponents; } export interface TabInputDto { diff --git a/src/vs/workbench/api/common/extHostEditorTabs.ts b/src/vs/workbench/api/common/extHostEditorTabs.ts index f261df42feb..1df76fd88c7 100644 --- a/src/vs/workbench/api/common/extHostEditorTabs.ts +++ b/src/vs/workbench/api/common/extHostEditorTabs.ts @@ -95,7 +95,7 @@ class ExtHostEditorTab { case TabInputKind.TerminalEditorInput: return new TerminalEditorTabInput(); case TabInputKind.InteractiveEditorInput: - return new InteractiveWindowInput(URI.revive(this._dto.input.uri)); + return new InteractiveWindowInput(URI.revive(this._dto.input.uri), URI.revive(this._dto.input.inputBoxUri)); default: return undefined; } diff --git a/src/vs/workbench/api/common/extHostTypes.ts b/src/vs/workbench/api/common/extHostTypes.ts index ec83bb937ae..e50faecd595 100644 --- a/src/vs/workbench/api/common/extHostTypes.ts +++ b/src/vs/workbench/api/common/extHostTypes.ts @@ -3729,6 +3729,6 @@ export class TerminalEditorTabInput { constructor() { } } export class InteractiveWindowInput { - constructor(readonly uri: URI) { } + constructor(readonly uri: URI, readonly inputBoxUri: URI) { } } //#endregion diff --git a/src/vscode-dts/vscode.proposed.interactiveWindow.d.ts b/src/vscode-dts/vscode.proposed.interactiveWindow.d.ts index bee7e24d5e7..823ee4d1678 100644 --- a/src/vscode-dts/vscode.proposed.interactiveWindow.d.ts +++ b/src/vscode-dts/vscode.proposed.interactiveWindow.d.ts @@ -12,7 +12,11 @@ declare module 'vscode' { * The uri of the history notebook in the interactive window. */ readonly uri: Uri; - constructor(uri: Uri); + /** + * The uri of the input box in the interactive window. + */ + readonly inputBoxUri: Uri; + private constructor(uri: Uri, inputBoxUri: Uri); } export interface Tab {