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 53a5374 commit ed4fa3cCopy full SHA for ed4fa3c
lib/plugins/codeit-autocomplete.js
@@ -262,7 +262,9 @@ acp.lang.js.autocomplete = (query) => {
262
// split query to get hierarchy
263
hierarchy = query.split('.');
264
265
+ // update query
266
acp.curr.query = hierarchy[hierarchy.length - 1];
267
+ query = acp.curr.query;
268
269
// remove query from hierarchy
270
hierarchy.pop();
@@ -295,7 +297,7 @@ acp.lang.js.autocomplete = (query) => {
295
297
// search keys in object
296
298
for (const name in currObject) {
299
- if (key.startsWith(acp.curr.query)) {
300
+ if (name.startsWith(query)) {
301
302
results.push(name);
303
0 commit comments