Skip to content

Rename doesn't work with files that don't have a .py extension #2468

@muhzii

Description

@muhzii

Describe the bug
Attempting to rename a variable in a file that doesn't end with a .py extension doesn't seem to do anything, the issue seems to occur only with renaming, where other features such as go to definition, references, etc.. seem to work properly.

To Reproduce
Create an extensionless file with a shebang (so it is is detected as a Python file), then try to rename a variable.

Expected behavior
It should be possible to change variable names in files identified as Python which don't have an extension.

Metadata

Metadata

Assignees

Labels

fixed in next version (main)A fix has been implemented and will appear in an upcoming version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions