Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code definition/references/peek doesn't work with files that have Python association but have no .py suffix #803

Closed
versemonger opened this issue Dec 24, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@versemonger
Copy link

Issue Type: Bug

Either of Python or Pylance plugins which displays code definition/references/peek seems to work only when a file has .py suffix and doesn't work when it has Python association but no .py suffix.

Extension version: 2020.12.424452561
VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:30:02.420Z)
OS version: Darwin x64 19.6.0

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 2
Memory (System) 32.00GB (0.14GB free)
Process Argv --crash-reporter-id d7b7b40c-8bbc-459b-9688-e7ee8b7d7acf
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221877
python763:30178808
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30227505
vswsl492cf:30211402
wsl2promptcf:30224613
pythonvsdeb440:30237827
unusedpromptcf:30224611
folderexplorercf:30224615
openfilemenucf:30224648
pythonvsded773:30236629
vsjup459cf:30237188

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Jan 4, 2021
@github-actions github-actions bot added the triage label Jan 4, 2021
@judej judej added the duplicate This issue or pull request already exists label Jan 4, 2021
@github-actions github-actions bot removed the triage label Jan 4, 2021
@erictraut
Copy link
Contributor

A fix for this was recently introduced into pyright (the type checker that pylance is built upon). The next release of pylance will pick up the fix.

@erictraut erictraut added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Jan 4, 2021
@jakebailey
Copy link
Member

This issue has been fixed in version 2021.1.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202110-6-january-2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

4 participants