mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
dots without any other actual relevant code shouldn't just complete, fixes #46
This commit is contained in:
@@ -108,6 +108,8 @@ class Script(object):
|
|||||||
|
|
||||||
debug.speed('complete start')
|
debug.speed('complete start')
|
||||||
path = self.module.get_path_until_cursor()
|
path = self.module.get_path_until_cursor()
|
||||||
|
if re.search('^\.|\.\.$', path):
|
||||||
|
return []
|
||||||
path, dot, like = self._get_completion_parts(path)
|
path, dot, like = self._get_completion_parts(path)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -9,6 +9,16 @@ int()
|
|||||||
int(str)
|
int(str)
|
||||||
|
|
||||||
|
|
||||||
|
# -----------------
|
||||||
|
# should not complete
|
||||||
|
# -----------------
|
||||||
|
#? []
|
||||||
|
.
|
||||||
|
#? []
|
||||||
|
str..
|
||||||
|
#? []
|
||||||
|
a(0):.
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# if/else/elif
|
# if/else/elif
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user