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..a361f0f2 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('mise exec ruby -- ruby' + rubyEnvCommand); + await this.injectRubyEnvironment(command, cwd); + break; default: return; }