@@ -289,7 +289,8 @@ export class ConsoleView extends UI.Widget.VBox implements
289
289
private readonly timestampsSetting : Common . Settings . Setting < unknown > ;
290
290
private readonly consoleHistoryAutocompleteSetting : Common . Settings . Setting < boolean > ;
291
291
private selfXssWarningDisabledSetting : Common . Settings . Setting < boolean > ;
292
- readonly pinPane : ConsolePinPane ;
292
+ // TODO(T225263604): Restore Live Expressions panel
293
+ // readonly pinPane: ConsolePinPane;
293
294
private viewport : ConsoleViewport ;
294
295
private messagesElement : HTMLElement ;
295
296
private messagesCountElement : HTMLElement ;
@@ -406,8 +407,9 @@ export class ConsoleView extends UI.Widget.VBox implements
406
407
toolbar . appendSeparator ( ) ;
407
408
toolbar . appendToolbarItem ( this . consoleContextSelector . toolbarItem ( ) ) ;
408
409
toolbar . appendSeparator ( ) ;
409
- const liveExpressionButton = UI . Toolbar . Toolbar . createActionButtonForId ( 'console.create-pin' ) ;
410
- toolbar . appendToolbarItem ( liveExpressionButton ) ;
410
+ // TODO(T225263604): Restore Live Expressions panel
411
+ // const liveExpressionButton = UI.Toolbar.Toolbar.createActionButtonForId('console.create-pin');
412
+ // toolbar.appendToolbarItem(liveExpressionButton);
411
413
toolbar . appendSeparator ( ) ;
412
414
toolbar . appendToolbarItem ( this . filter . textFilterUI ) ;
413
415
toolbar . appendToolbarItem ( this . filter . levelMenuButton ) ;
@@ -468,8 +470,9 @@ export class ConsoleView extends UI.Widget.VBox implements
468
470
469
471
ConsoleView . appendSettingsCheckboxToToolbar (
470
472
settingsToolbarRight , monitoringXHREnabledSetting , i18nString ( UIStrings . logXMLHttpRequests ) ) ;
471
- ConsoleView . appendSettingsCheckboxToToolbar (
472
- settingsToolbarRight , 'console-eager-eval' , i18nString ( UIStrings . eagerlyEvaluateTextInThePrompt ) ) ;
473
+ // TODO(T225263604): Restore this setting
474
+ // ConsoleView.appendSettingsCheckboxToToolbar(
475
+ // settingsToolbarRight, 'console-eager-eval', i18nString(UIStrings.eagerlyEvaluateTextInThePrompt));
473
476
ConsoleView . appendSettingsCheckboxToToolbar (
474
477
settingsToolbarRight , this . consoleHistoryAutocompleteSetting , i18nString ( UIStrings . autocompleteFromHistory ) ) ;
475
478
ConsoleView . appendSettingsCheckboxToToolbar (
@@ -481,9 +484,10 @@ export class ConsoleView extends UI.Widget.VBox implements
481
484
this . showSettingsPaneSetting . addChangeListener (
482
485
( ) => settingsPane . element . classList . toggle ( 'hidden' , ! this . showSettingsPaneSetting . get ( ) ) ) ;
483
486
484
- this . pinPane = new ConsolePinPane ( liveExpressionButton , ( ) => this . prompt . focus ( ) ) ;
485
- this . pinPane . element . classList . add ( 'console-view-pinpane' ) ;
486
- this . pinPane . show ( this . contentsElement ) ;
487
+ // TODO(T225263604): Restore Live Expressions panel
488
+ // this.pinPane = new ConsolePinPane(liveExpressionButton, () => this.prompt.focus());
489
+ // this.pinPane.element.classList.add('console-view-pinpane');
490
+ // this.pinPane.show(this.contentsElement);
487
491
488
492
this . viewport = new ConsoleViewport ( this ) ;
489
493
this . viewport . setStickToBottom ( true ) ;
@@ -1827,9 +1831,10 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
1827
1831
case 'console.clear.history' :
1828
1832
ConsoleView . instance ( ) . clearHistory ( ) ;
1829
1833
return true ;
1830
- case 'console.create-pin' :
1831
- ConsoleView . instance ( ) . pinPane . addPin ( '' , true /* userGesture */ ) ;
1832
- return true ;
1834
+ // TODO(T225263604): Restore Live Expressions panel
1835
+ // case 'console.create-pin':
1836
+ // ConsoleView.instance().pinPane.addPin('', true /* userGesture */);
1837
+ // return true;
1833
1838
}
1834
1839
return false ;
1835
1840
}
0 commit comments