Index: Source/devtools/front_end/console/ConsoleView.js |
diff --git a/Source/devtools/front_end/console/ConsoleView.js b/Source/devtools/front_end/console/ConsoleView.js |
index c8483ac1bf233528583fa99146395d0fa0dbae83..1680040db8855fef2e840aff04aaae8a18bd5eea 100644 |
--- a/Source/devtools/front_end/console/ConsoleView.js |
+++ b/Source/devtools/front_end/console/ConsoleView.js |
@@ -65,6 +65,10 @@ WebInspector.ConsoleView = function() |
this._executionContextComboBox.setMaxWidth(200); |
this._executionContextModel = new WebInspector.ExecutionContextModel(this._executionContextComboBox.selectElement()); |
+ this._selectedLanguageServiceComboBox = new WebInspector.ToolbarComboBox(null, "console-context"); |
+ this._selectedLanguageServiceComboBox.setMaxWidth(200); |
+ this._languageServiceModel = new WebInspector.LanguageServiceModel(this._selectedLanguageServiceComboBox.selectElement(), [WebInspector.LanguageService.Capabilities.Transpile, WebInspector.LanguageService.Capabilities.DebuggerCompletions]); |
+ |
this._filter = new WebInspector.ConsoleViewFilter(this); |
this._filter.addEventListener(WebInspector.ConsoleViewFilter.Events.FilterChanged, this._updateMessageList.bind(this)); |
@@ -77,6 +81,7 @@ WebInspector.ConsoleView = function() |
toolbar.appendToolbarItem(this._clearConsoleButton); |
toolbar.appendToolbarItem(this._filterBar.filterButton()); |
toolbar.appendToolbarItem(this._executionContextComboBox); |
+ toolbar.appendToolbarItem(this._selectedLanguageServiceComboBox); |
toolbar.appendToolbarItem(this._preserveLogCheckbox); |
toolbar.appendToolbarItem(this._progressToolbarItem); |