microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
915 stars 133 forks source link

"Go to definition" cannot jump to the related file #1904

Open dxsun86 opened 4 years ago

dxsun86 commented 4 years ago

There are two python source files a.py and b.py in the same folder as following: ---------------------------- a.py ----------------------------- import b

class A(b.B): def a_display(self): print "a.py ---->", self.class

a = A() a.b_display()

---------------------------- b.py ----------------------------- class B(): def b_display(self): print "b.py ---->", self.class

For a.b_display(), "Go to definition" cannot jump to the b.py and just move the cursor to the line 2 in a.py.

Thanks.

MikhailArkhipov commented 4 years ago

This appears to work for me gotodef1

Same in Python 2.