Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

All references are not listed when using ms language server #1174

Closed
@DonJayamanne

Description

@DonJayamanne

@jahan01 commented on Wed Jun 05 2019

Environment data

  • VS Code version: latest
  • Extension version (available under the Extensions sidebar): 2019.5.18426
  • OS and version: Mac Os
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6 (Anaconda)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Language Server (more info #3977): Language Server

constants.py

VARIABLE1 = 'afad'
VARIABLE2 = 'dcef'

use.py

from vscode_test.constants import *
from vscode_test import constants

print(VARIABLE1)
print(constants.VARIABLE2)

print(VARIABLE2)
print(constants.VARIABLE1)

Expected behaviour

All usages of the symbol to be listed under references when Right click -> Find All References on VARIABLE1 in constants.py

Actual behaviour

Doesn't list all usages when ms language server is used.
Usage of print(constants.VARIABLE1) in use.py isnt listed.

Looks like if symbol is imported directly, the reference is listed. If the symbol referenced via modules it isn't listed.

This issue seems to be recurring - why not have some tests for this ?

When Jedi is enabled it works as expected.

image

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions