From 9bc7d931612f764eb630a34f52b3dec521eb7516 Mon Sep 17 00:00:00 2001 From: Theodor Tonum Date: Fri, 26 Sep 2025 10:20:28 +0200 Subject: [PATCH 1/2] Add Mise as supported version manager --- README.md | 2 +- package.json | 1 + src/extension.ts | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9e01dc1c..3a1441ab 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ In order to launch the debugger using the correct Ruby version, rdbg allows conf ```jsonc // Default value is "none" for not using a version manager to activate the environment -// Available managers are shadowenv, chruby, asdf, rbenv and rvm +// Available managers are shadowenv, chruby, asdf, rbenv, mise and rvm { // User settings diff --git a/package.json b/package.json index ff182edd..8837c2c7 100644 --- a/package.json +++ b/package.json @@ -231,6 +231,7 @@ "asdf", "rbenv", "rvm", + "mise", "none" ], "default": "none" diff --git a/src/extension.ts b/src/extension.ts index 15cf6748..6eb1055b 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -32,6 +32,7 @@ enum VersionManager { Rbenv = "rbenv", Rvm = "rvm", Shadowenv = "shadowenv", + Mise = "mise", None = "none", } @@ -379,6 +380,10 @@ class RdbgAdapterDescriptorFactory implements DebugAdapterDescriptorFactory, Ver ?.activate(); await this.sleepMs(500); break; + case VersionManager.Mise: + command = this.makeShellCommand('rbenv exec ruby -- ruby' + rubyEnvCommand); + await this.injectRubyEnvironment(command, cwd); + break; default: return; } From aa27b15ad61934dad56bb2804055a05cd49af2a4 Mon Sep 17 00:00:00 2001 From: Theodor Tonum Date: Tue, 2 Dec 2025 00:22:46 +0100 Subject: [PATCH 2/2] Update src/extension.ts Co-authored-by: Robby Thompson --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index 6eb1055b..a361f0f2 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -381,7 +381,7 @@ class RdbgAdapterDescriptorFactory implements DebugAdapterDescriptorFactory, Ver await this.sleepMs(500); break; case VersionManager.Mise: - command = this.makeShellCommand('rbenv exec ruby -- ruby' + rubyEnvCommand); + command = this.makeShellCommand('mise exec ruby -- ruby' + rubyEnvCommand); await this.injectRubyEnvironment(command, cwd); break; default: