Skip to content

Commit ec72b66

Browse files
authored
Expose inputBoxUri and make IW Tab ctor private (microsoft#154979)
1 parent 54927b0 commit ec72b66

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

src/vs/workbench/api/browser/mainThreadEditorTabs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ export class MainThreadEditorTabs implements MainThreadEditorTabsShape {
166166
if (editor instanceof InteractiveEditorInput) {
167167
return {
168168
kind: TabInputKind.InteractiveEditorInput,
169-
uri: editor.resource
169+
uri: editor.resource,
170+
inputBoxUri: editor.inputResource
170171
};
171172
}
172173

src/vs/workbench/api/common/extHost.protocol.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,7 @@ export interface WebviewInputDto {
677677
export interface InteractiveEditorInputDto {
678678
kind: TabInputKind.InteractiveEditorInput;
679679
uri: UriComponents;
680+
inputBoxUri: UriComponents;
680681
}
681682

682683
export interface TabInputDto {

src/vs/workbench/api/common/extHostEditorTabs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class ExtHostEditorTab {
9595
case TabInputKind.TerminalEditorInput:
9696
return new TerminalEditorTabInput();
9797
case TabInputKind.InteractiveEditorInput:
98-
return new InteractiveWindowInput(URI.revive(this._dto.input.uri));
98+
return new InteractiveWindowInput(URI.revive(this._dto.input.uri), URI.revive(this._dto.input.inputBoxUri));
9999
default:
100100
return undefined;
101101
}

src/vs/workbench/api/common/extHostTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3729,6 +3729,6 @@ export class TerminalEditorTabInput {
37293729
constructor() { }
37303730
}
37313731
export class InteractiveWindowInput {
3732-
constructor(readonly uri: URI) { }
3732+
constructor(readonly uri: URI, readonly inputBoxUri: URI) { }
37333733
}
37343734
//#endregion

src/vscode-dts/vscode.proposed.interactiveWindow.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ declare module 'vscode' {
1212
* The uri of the history notebook in the interactive window.
1313
*/
1414
readonly uri: Uri;
15-
constructor(uri: Uri);
15+
/**
16+
* The uri of the input box in the interactive window.
17+
*/
18+
readonly inputBoxUri: Uri;
19+
private constructor(uri: Uri, inputBoxUri: Uri);
1620
}
1721

1822
export interface Tab {

0 commit comments

Comments
 (0)