Index: Source/devtools/front_end/UISourceCodeFrame.js |
diff --git a/Source/devtools/front_end/UISourceCodeFrame.js b/Source/devtools/front_end/UISourceCodeFrame.js |
index 197aef18b2dd850a9df094a871bee16021278377..b948bfb31603b1d8dab16805c5439d6b6d4187d8 100644 |
--- a/Source/devtools/front_end/UISourceCodeFrame.js |
+++ b/Source/devtools/front_end/UISourceCodeFrame.js |
@@ -35,6 +35,9 @@ WebInspector.UISourceCodeFrame = function(uiSourceCode) |
{ |
this._uiSourceCode = uiSourceCode; |
WebInspector.SourceFrame.call(this, this._uiSourceCode); |
+ if (WebInspector.experimentsSettings.textEditorAutocomplete.isEnabled()) |
+ this.textEditor.setCompletionDictionary(new WebInspector.SampleCompletionDictionary()); |
+ |
this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.FormattedChanged, this._onFormattedChanged, this); |
this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.WorkingCopyChanged, this._onWorkingCopyChanged, this); |
this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.WorkingCopyCommitted, this._onWorkingCopyCommitted, this); |