Skip to content

Commit 5cd321d

Browse files
committed
fix #340
1 parent 58e35a6 commit 5cd321d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/providers/execInTerminalProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function execInTerminal(fileUri?: vscode.Uri) {
1414
const currentPythonPath = pythonSettings.pythonPath;
1515
let filePath: string;
1616

17-
if (fileUri === undefined) {
17+
if (fileUri === undefined || typeof fileUri.fsPath !== 'string') {
1818
const activeEditor = vscode.window.activeTextEditor;
1919
if (activeEditor !== undefined) {
2020
if (!activeEditor.document.isUntitled) {

0 commit comments

Comments
 (0)