mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-21 Do not auto-complete paths with '.' (period)
This commit is contained in:
+2
@@ -35,6 +35,8 @@ public class FileReferenceCharFilter extends CharFilter{
|
||||
|
||||
final LookupElement item = lookup.getCurrentItem();
|
||||
if (item != null && item.getObject() instanceof PsiFileSystemItem) {
|
||||
if ('.' == c) return Result.ADD_TO_PREFIX;
|
||||
|
||||
final PsiReference reference = file.findReferenceAt(lookup.getEditor().getCaretModel().getOffset());
|
||||
if (reference instanceof FileReference) return Result.HIDE_LOOKUP;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user