-
Notifications
You must be signed in to change notification settings - Fork 36
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
format on save formats stdlib code #250
Comments
@DetachHead Can you try with the pre-release version? I recently updated the stdlib check, and this is in pre-release |
it now correctly ignores stdlib files but still formats typeshed files (located in |
I believe that the fix for this issue is causing a different problem. For me, this extension is now failing to format many of my files because I have installed them in development mode with
Which then means that the files simply don't get formatted:
This is a severe problem for me since, by definition, the trees affected by this are the ones that I'm editing in VS Code! |
@pkgw Can you give me the output of this for your environment?
|
For my default interpreter, it's:
I should also mention that this problem has actually been affecting me for the past few releases; the changes introduced for this specific issue don't seem to be specifically relevant to what I'm seeing. I can file a separate issue if that would be better. |
@pkgw There is a specific issue for this now: #272 @DetachHead would you be a to provide the same info for your case?
Basically, there are two options:
|
Can you try |
That did fix it for me, thank you :) |
sometimes i accidentally make changes to stdlib files (eg.
[python install directory]/lib/typing.py
) and typeshed files (eg.%userprofile%/.vscode/extensions/ms-python.vscode-pylance-2023.6.10/dist/typeshed-fallback/stdlib
), and it's annoying when they get formatted by this extensionThe text was updated successfully, but these errors were encountered: