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 183a0bf commit 9b75464Copy full SHA for 9b75464
lib/plugins/codeit-autocomplete.js
@@ -256,15 +256,15 @@ acp.language.js.autocomplete = (query) => {
256
257
// if query dosen't end with a '.', return
258
if (!query.includes('.')) return [];
259
-
260
- // remove dot from end of query
261
- if (query.endsWith('.')) query = query.slice(0, -1);
262
263
// split query to get hierarchy
264
hierarchy = query.split('.');
265
266
acp.curr.query = hierarchy[hierarchy.length - 1];
267
+ // remove query from hierarchy
+ hierarchy.pop();
+
268
269
let currObject = acp.language.js.props;
270
0 commit comments