Skip to content

Server doesn't consider a file with no extension #12539

@Khufu0

Description

@Khufu0

consider this minimal example
#!/usr/bin/python3 target = None if target != None: print ("target's not none")
if the file that contains the script has a .py extension it will display the following

Screenshot from 2024-07-27 01-04-31

and if i remove the .py extension ,no warnings will display nor file can be formatted even though vscode detects
that it's a python file.

ruff version: 0.5.5
Python version: 3.12.4
vscode version: 1.91.1
OS: archlinux

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingserverRelated to the LSP server

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions