File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/vs/workbench/contrib/notebook/browser/view/renderers Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1609,7 +1609,7 @@ export class BackLayerWebView<T extends ICommonCellInfo> extends Themable {
1609
1609
this . webview ?. focus ( ) ;
1610
1610
}
1611
1611
1612
- focusOutput ( cellOrOutputId : string , backupId : string | undefined , viewFocused : boolean ) {
1612
+ focusOutput ( cellOrOutputId : string , alternateId : string | undefined , viewFocused : boolean ) {
1613
1613
if ( this . _disposed ) {
1614
1614
return ;
1615
1615
}
@@ -1621,7 +1621,7 @@ export class BackLayerWebView<T extends ICommonCellInfo> extends Themable {
1621
1621
this . _sendMessageToWebview ( {
1622
1622
type : 'focus-output' ,
1623
1623
cellOrOutputId : cellOrOutputId ,
1624
- backupId : backupId
1624
+ alternateId : alternateId
1625
1625
} ) ;
1626
1626
}
1627
1627
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ export interface ICopyImageMessage {
275
275
export interface IFocusOutputMessage {
276
276
readonly type : 'focus-output' ;
277
277
readonly cellOrOutputId : string ;
278
- readonly backupId ?: string ;
278
+ readonly alternateId ?: string ;
279
279
}
280
280
281
281
export interface IAckOutputHeight {
Original file line number Diff line number Diff line change @@ -474,9 +474,9 @@ async function webviewPreloads(ctx: PreloadContext) {
474
474
} ) ;
475
475
} ;
476
476
477
- function focusFirstFocusableOrContainerInOutput ( cellOrOutputId : string , backupId ?: string ) {
477
+ function focusFirstFocusableOrContainerInOutput ( cellOrOutputId : string , alternateId ?: string ) {
478
478
const cellOutputContainer = document . getElementById ( cellOrOutputId ) ??
479
- backupId ? document . getElementById ( backupId ! ) : undefined ;
479
+ alternateId ? document . getElementById ( alternateId ! ) : undefined ;
480
480
if ( cellOutputContainer ) {
481
481
if ( cellOutputContainer . contains ( document . activeElement ) ) {
482
482
return ;
@@ -1525,7 +1525,7 @@ async function webviewPreloads(ctx: PreloadContext) {
1525
1525
break ;
1526
1526
}
1527
1527
case 'focus-output' :
1528
- focusFirstFocusableOrContainerInOutput ( event . data . cellOrOutputId , event . data . backupId ) ;
1528
+ focusFirstFocusableOrContainerInOutput ( event . data . cellOrOutputId , event . data . alternateId ) ;
1529
1529
break ;
1530
1530
case 'decorations' : {
1531
1531
let outputContainer = document . getElementById ( event . data . cellId ) ;
You can’t perform that action at this time.
0 commit comments