Index: Source/devtools/front_end/JavaScriptSourceFrame.js |
diff --git a/Source/devtools/front_end/JavaScriptSourceFrame.js b/Source/devtools/front_end/JavaScriptSourceFrame.js |
index fd27de879b1721afed01eda7c26542b0bb01518b..c03fac42db21505856f400dec8029f72ef0241c2 100644 |
--- a/Source/devtools/front_end/JavaScriptSourceFrame.js |
+++ b/Source/devtools/front_end/JavaScriptSourceFrame.js |
@@ -47,6 +47,9 @@ WebInspector.JavaScriptSourceFrame = function(scriptsPanel, uiSourceCode) |
this._popoverHelper = new WebInspector.ObjectPopoverHelper(this.textEditor.element, |
this._getPopoverAnchor.bind(this), this._resolveObjectForPopover.bind(this), this._onHidePopover.bind(this), true); |
+ if (WebInspector.experimentsSettings.textEditorAutocomplete.isEnabled()) |
+ this.textEditor.setCompletionDictionary(new WebInspector.SampleCompletionDictionary()); |
vsevik
2013/05/24 16:32:34
Let's put this into UISourceCodeFrame.
|
+ |
this.textEditor.element.addEventListener("keydown", this._onKeyDown.bind(this), true); |
this.textEditor.addEventListener(WebInspector.TextEditor.Events.GutterClick, this._handleGutterClick.bind(this), this); |