Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(857)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js

Issue 2760583002: DevTools: Don't give up autocomplete after a fancy character in a string (Closed)
Patch Set: merge Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/text_editor/TextEditorAutocompleteController.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js b/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
index 9c5688aadf842c078fd9aea3e90fc222a1018356..d1189e68f2f0046637c001bca8e138fe2872bed6 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
@@ -70,7 +70,14 @@ UI.TextEditor.prototype = {
*/
configureAutocomplete(config) {},
- clearAutocomplete() {}
+ clearAutocomplete() {},
+
+ /**
+ * @param {number} lineNumber
+ * @param {number} columnNumber
+ * @return {?{startColumn: number, endColumn: number, type: string}}
+ */
+ tokenAtTextPosition(lineNumber, columnNumber) {}
};
/**
@@ -88,7 +95,7 @@ UI.TextEditor.Options;
/**
* @typedef {{
* substituteRangeCallback: ((function(number, number):?Common.TextRange)|undefined),
- * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boolean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined),
+ * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boolean=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined),
* isWordChar: ((function(string):boolean)|undefined),
* captureEnter: (boolean|undefined)
* }}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/text_editor/TextEditorAutocompleteController.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698