From f324e3e161d5fcc925e0bdc789d30c11518147cb Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Tue, 16 Jan 2024 15:37:50 -0300 Subject: [PATCH] Save workspace folder instead of custom workspace object in debug config --- src/debugger.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/debugger.ts b/src/debugger.ts index a1ed5860..3f6bcdb5 100644 --- a/src/debugger.ts +++ b/src/debugger.ts @@ -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; @@ -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);