Skip to content

Commit

Permalink
clear working dir if path is invalid. Fixed #41
Browse files Browse the repository at this point in the history
  • Loading branch information
iishiishii committed Oct 20, 2024
1 parent 11d0689 commit d367e3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/sessionwindow/sessionwindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
DEFAULT_WIN_HEIGHT,
DEFAULT_WIN_WIDTH,
EngineType,
resolveWorkingDirectory,
SettingType,
WorkspaceSettings
} from '../config/settings';
Expand Down Expand Up @@ -1156,8 +1157,9 @@ export class SessionWindow implements IDisposable {
recentSessionIndex?: number,
useDefaultPythonEnv?: boolean
) {
const resolvedWorkingDirectory = resolveWorkingDirectory(workingDirectory);
const sessionConfig = SessionConfig.createLocal(
workingDirectory,
resolvedWorkingDirectory,
filesToOpen
);

Expand Down

0 comments on commit d367e3d

Please sign in to comment.