forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
Environment data
VS Code version: Version 1.18.1 (1.18.1)
Python Extension version: 0.8.0
Python Version: 3.6
OS and version: Mac High Sierra
Actual behavior
Assuming my current project structure:
-stopwatch_app
--test.py
--utils
---greeter.py
And contents of:
# test.py
from utils.greeter import print_greeting
def main():
print_greeting()
# utils/greeter.py
def print_greeting():
print('Hello')
In test.py, when I select go to definition for the print_greeting method in main (Figure 1), it automatically places the cursor right before the import definition (Figure 2).
Expected behavior
It should instead take me to the print_greeting() definition in the utils/greeter.py file.
Steps to reproduce:
- Download the source
stopwatch_app.zip - Open the source project in VSCode
- Go to
test.py, right click onprint_greeting()defined inmainand selectGo To Definition
Logs
Output from Python output panel
N/A
swarnendubiswas, david-gang, discosultan, oxy, gmmephisto and 16 more
Metadata
Metadata
Assignees
Labels
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug

