Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Save workspace folder instead of custom workspace object in debug config #988

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class Debugger
debugConfiguration.env = workspace.ruby.env;
}

debugConfiguration.workspace = workspace;
debugConfiguration.targetFolder = workspace.workspaceFolder;

const workspacePath = workspace.workspaceFolder.uri.fsPath;

Expand Down Expand Up @@ -166,8 +166,7 @@ export class Debugger
let initialized = false;

const configuration = session.configuration;
const workspaceFolder: vscode.WorkspaceFolder =
configuration.workspace.workspaceFolder;
const workspaceFolder: vscode.WorkspaceFolder = configuration.targetFolder;
const cwd = workspaceFolder.uri.fsPath;
const sockPath = this.socketPath(workspaceFolder.name);

Expand Down