microsoft / vscode-python

Python extension for Visual Studio Code

Home Page:https://aka.ms/pvsc-marketplace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Respect executeInFileDir when 'Run Selection/Line in Python Terminal'

bet4it opened this issue · comments

commented

Currently thepython.terminal.executeInFileDir settings doesn't affect Run Selection/Line in Python Terminal ( executeSelectionInTerminal ).

Hope we can also call setCwdForFileExecution in initializeRepl to set cwd when python.terminal.executeInFileDir is enabled.

Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes your idea gets to help us make our decision.

Thanks for the suggestion 👍 but we decided not to move forward with this idea for now, since you can just change the directory in the terminal manually (and then the extension will just paste in the selection).