Title: All references are not listed when using ms language server · Issue #5917 · microsoft/vscode-python · GitHub
Open Graph Title: All references are not listed when using ms language server · Issue #5917 · microsoft/vscode-python
X Title: All references are not listed when using ms language server · Issue #5917 · microsoft/vscode-python
Description: 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 environ...
Open Graph Description: 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)...
X Description: 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. Anaco...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/5917
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"All references are not listed when using ms language server","articleBody":"\u003c!-- Please search existing issues to avoid creating duplicates. -->\r\n\r\n## Environment data\r\n\r\n- VS Code version: latest\r\n- Extension version (available under the Extensions sidebar): 2019.5.18426\r\n- OS and version: Mac Os\r\n- Python version (& distribution if applicable, e.g. Anaconda): 3.6 (Anaconda)\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda\r\n- Language Server (more info #3977): Language Server\r\n\r\n`constants.py`\r\n```python\r\nVARIABLE1 = 'afad'\r\nVARIABLE2 = 'dcef'\r\n```\r\n\r\n`use.py`\r\n```python\r\nfrom vscode_test.constants import *\r\nfrom vscode_test import constants\r\n\r\nprint(VARIABLE1)\r\nprint(constants.VARIABLE2)\r\n\r\nprint(VARIABLE2)\r\nprint(constants.VARIABLE1)\r\n\r\n```\r\n\r\n## Expected behaviour\r\n\r\nAll usages of the symbol to be listed under references when `Right click -> Find All References` on `VARIABLE1` in `constants.py`\r\n\r\n## Actual behaviour\r\n\r\nDoesn't list all usages when ms language server is used.\r\nUsage of `print(constants.VARIABLE1)` in `use.py` isnt listed.\r\n\r\nLooks like if symbol is imported directly, the reference is listed. If the symbol referenced via modules it isn't listed.\r\n\r\nThis issue seems to be recurring - why not have some tests for this ?\r\n\r\nWhen Jedi is enabled it works as expected.\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/jahan01","@type":"Person","name":"jahan01"},"datePublished":"2019-06-05T15:53:34Z","url":"https://github.com/microsoft/vscode-python/issues/5917"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c8a92c7c-18b6-befb-b66f-c09245087fce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9318:9D4BF:1F297E:28A215:6AFE5A44 |
| html-safe-nonce | e934d15ac89b600af449d271dfeaff1d33044ae42136ef0b98be2c97265928b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzE4OjlENEJGOjFGMjk3RToyOEEyMTU6NkFGRTVBNDQiLCJ2aXNpdG9yX2lkIjoiMzQ2ODM2NjUyMDU5NjE5MTgxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 246a5e247a25b550ffbec1e2310594a0a51a91765facec36a27213c20b655537 |
| hovercard-subject-tag | issue:452581560 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/5917/issue_layout |
| twitter:image | https://opengraph.githubassets.com/780efeb3c10c5170760401e9d51ce99a5e67d43e2bd4d4ad31511632b9c899f4/microsoft/vscode-python/issues/5917 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/780efeb3c10c5170760401e9d51ce99a5e67d43e2bd4d4ad31511632b9c899f4/microsoft/vscode-python/issues/5917 |
| og:image:alt | 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)... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jahan01 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width