Skip to content

Commit 9b75464

Browse files
committed
Update codeit-autocomplete.js
1 parent 183a0bf commit 9b75464

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/plugins/codeit-autocomplete.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,15 @@ acp.language.js.autocomplete = (query) => {
256256

257257
// if query dosen't end with a '.', return
258258
if (!query.includes('.')) return [];
259-
260-
// remove dot from end of query
261-
if (query.endsWith('.')) query = query.slice(0, -1);
262259

263260
// split query to get hierarchy
264261
hierarchy = query.split('.');
265262

266263
acp.curr.query = hierarchy[hierarchy.length - 1];
267264

265+
// remove query from hierarchy
266+
hierarchy.pop();
267+
268268

269269
let currObject = acp.language.js.props;
270270

0 commit comments

Comments
 (0)