| Index: third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
|
| index 53ca7697a7eaa70e3af665785bb5232989db3721..6ce41870054a4462a19026ed9477c395a80d88bd 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
|
| @@ -252,13 +252,14 @@ WebInspector.ConsolePrompt = class extends WebInspector.Widget {
|
| * @param {!WebInspector.TextRange} queryRange
|
| * @param {!WebInspector.TextRange} substituteRange
|
| * @param {boolean=} force
|
| + * @param {string=} tokenType
|
| * @return {!Promise<!WebInspector.SuggestBox.Suggestions>}
|
| */
|
| - _wordsWithQuery(queryRange, substituteRange, force) {
|
| + _wordsWithQuery(queryRange, substituteRange, force, tokenType) {
|
| var query = this._editor.text(queryRange);
|
| var before = this._editor.text(new WebInspector.TextRange(0, 0, queryRange.startLine, queryRange.startColumn));
|
| var historyWords = this._historyCompletions(query, force);
|
| - return WebInspector.JavaScriptAutocomplete.completionsForTextInCurrentContext(before, query, force)
|
| + return WebInspector.JavaScriptAutocomplete.completionsForTextInCurrentContext(before, query, force, tokenType)
|
| .then(innerWordsWithQuery);
|
| /**
|
| * @param {!Array<string>} words
|
|
|