Skip to content

Commit 0a8a146

Browse files
committed
Fix token search bug
1 parent 71ed1b5 commit 0a8a146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/code-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
case '.':
313313
var next = getTokenAfter(editor, line, token);
314314
return next.type === 'variable' ? getLowerHint(editor, line, next)
315-
: next.type === 'variable-2' ? getUpperHint(editor, line, next) : null;
315+
: next.type === 'variable-2' ? getUpperHint(editor, importEnd, line, next) : null;
316316

317317
case 'type':
318318
return /^type\salias\b/.test(editor.getLine(line)) ? 'alias' : 'type';

0 commit comments

Comments
 (0)