-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Create a python file should automatically select the language for the file as python #18376
Comments
@karthiknadig Do you know if there's a command to do it? Cause AFAIK it can't be done programmatically :( |
We should ask for this API in VS Code repo. There is a command 'Change language mode', but this does a quick pick. |
I guess they do offer a way through this? https://code.visualstudio.com/updates/v1_59#_contribution-point-for-new-file-menu |
To verify, set This is behind a setting to be run as an experiment (motivation) |
It looks like the "create Python file" command through the "help: get started" page still asks for a language selection. Was that supposed to be updated as well? |
@amunger looks like the build did not publish with that change in due to a network issue. Can you try with this one: https://github.com/microsoft/vscode-python/suites/5410040257/artifacts/170851098 |
Still the same behavior after installing that visx (v2022.1.1884760391-dev) |
@amunger sorry, what do you mean by language selection? once you click on "new file" it should show up a list with of possible files you'd like to create. Is this not what you're seeing? |
Oh, I read through your verification steps too quickly. It doesn't look like this was actually something to verify |
oh that is such a good point, though! I'll create a new issue to use that in the walkthrough: #18575 Thanks for bringing it up! 😊 |
@luabud It should now be possible with microsoft/vscode#153872 🥳 Does Python extension still need its own |
@karrtikr Awesome! I don't think we need the command anymore then. We can remove it 😢 |
Testing #18355
Currently create a python file opens a generic untitled file. Instead, it should set the language on the untitled file.

The text was updated successfully, but these errors were encountered: