Skip to content

Commit 2e4187c

Browse files
committed
normalize option name
1 parent e5851bc commit 2e4187c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ export class BackLayerWebView<T extends ICommonCellInfo> extends Themable {
16091609
this.webview?.focus();
16101610
}
16111611

1612-
focusOutput(cellOrOutputId: string, backupId: string | undefined, viewFocused: boolean) {
1612+
focusOutput(cellOrOutputId: string, alternateId: string | undefined, viewFocused: boolean) {
16131613
if (this._disposed) {
16141614
return;
16151615
}
@@ -1621,7 +1621,7 @@ export class BackLayerWebView<T extends ICommonCellInfo> extends Themable {
16211621
this._sendMessageToWebview({
16221622
type: 'focus-output',
16231623
cellOrOutputId: cellOrOutputId,
1624-
backupId: backupId
1624+
alternateId: alternateId
16251625
});
16261626
}
16271627

src/vs/workbench/contrib/notebook/browser/view/renderers/webviewMessages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export interface ICopyImageMessage {
275275
export interface IFocusOutputMessage {
276276
readonly type: 'focus-output';
277277
readonly cellOrOutputId: string;
278-
readonly backupId?: string;
278+
readonly alternateId?: string;
279279
}
280280

281281
export interface IAckOutputHeight {

src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,9 @@ async function webviewPreloads(ctx: PreloadContext) {
474474
});
475475
};
476476

477-
function focusFirstFocusableOrContainerInOutput(cellOrOutputId: string, backupId?: string) {
477+
function focusFirstFocusableOrContainerInOutput(cellOrOutputId: string, alternateId?: string) {
478478
const cellOutputContainer = document.getElementById(cellOrOutputId) ??
479-
backupId ? document.getElementById(backupId!) : undefined;
479+
alternateId ? document.getElementById(alternateId!) : undefined;
480480
if (cellOutputContainer) {
481481
if (cellOutputContainer.contains(document.activeElement)) {
482482
return;
@@ -1525,7 +1525,7 @@ async function webviewPreloads(ctx: PreloadContext) {
15251525
break;
15261526
}
15271527
case 'focus-output':
1528-
focusFirstFocusableOrContainerInOutput(event.data.cellOrOutputId, event.data.backupId);
1528+
focusFirstFocusableOrContainerInOutput(event.data.cellOrOutputId, event.data.alternateId);
15291529
break;
15301530
case 'decorations': {
15311531
let outputContainer = document.getElementById(event.data.cellId);

0 commit comments

Comments
 (0)