We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58e35a6 commit 5cd321dCopy full SHA for 5cd321d
1 file changed
src/client/providers/execInTerminalProvider.ts
@@ -14,7 +14,7 @@ function execInTerminal(fileUri?: vscode.Uri) {
14
const currentPythonPath = pythonSettings.pythonPath;
15
let filePath: string;
16
17
- if (fileUri === undefined) {
+ if (fileUri === undefined || typeof fileUri.fsPath !== 'string') {
18
const activeEditor = vscode.window.activeTextEditor;
19
if (activeEditor !== undefined) {
20
if (!activeEditor.document.isUntitled) {
0 commit comments