Skip to content

Goto Definitions is not working in VS code as of on vs code version 1.27.1 #2555

@ravisingh171989

Description

@ravisingh171989

Environment data

Version: 1.27.1 (user setup)
Commit: 5944e81f3c46a3938a82c701f96d7a59b074cfdc
Date: 2018-09-06T09:21:18.328Z
Electron: 2.0.7
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64

Actual behavior

Assuming my current project structure:
-Functional_Test_Framework
--TestSuites
---SmoketestSuite.py
--Library
---HtmlTestRunner.py
And contents of:

SmoketestSuite.py

from HTMLTestRunner import HTMLTestRunner

Library/HtmlTestRunner.py

class HTMLTestRunner(Template_mixin):
"""
"""
In SmoketestSuite.py, when I select go to definition for the HTMLTestRunner method in SmoketestSuite.py(Figure 1), it automatically places the cursor right before the import definition (Figure 2).

Figure 1
screenshot 18

Figure 2
screenshot 16

Expected behavior

It should instead take me to the HtmlTestRunner() definition in the Library/HtmlTestRunner.py file.

##Steps to reproduce:
Open the source project in VSCode
Go to any .py file, right click on print_greeting() defined in main and select Go To Definition

##Logs
Output from Python output panel
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions