We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a315ec commit fdaf7b5Copy full SHA for fdaf7b5
common/content/completion.js
@@ -208,7 +208,13 @@ const CompletionContext = Class("CompletionContext", {
208
__proto__: item
209
}));
210
});
211
- return { start: minStart, items: util.Array.flatten(items), longestSubstring: this.longestAllSubstring };
+ return { start: minStart, items: util.Array.flatten(items),
212
+ get longestSubstring() {
213
+ var value = this.longestAllSubstring;
214
+ Object.defineProperty(this, "longestSubstring", { value: value});
215
+ return value;
216
+ }
217
+ };
218
}
219
catch (e) {
220
liberator.echoerr(e);
0 commit comments