Skip to content

Commit 9bc7d93

Browse files
committed
Add Mise as supported version manager
1 parent dd16d14 commit 9bc7d93

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ In order to launch the debugger using the correct Ruby version, rdbg allows conf
225225

226226
```jsonc
227227
// Default value is "none" for not using a version manager to activate the environment
228-
// Available managers are shadowenv, chruby, asdf, rbenv and rvm
228+
// Available managers are shadowenv, chruby, asdf, rbenv, mise and rvm
229229

230230
{
231231
// User settings

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@
231231
"asdf",
232232
"rbenv",
233233
"rvm",
234+
"mise",
234235
"none"
235236
],
236237
"default": "none"

src/extension.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ enum VersionManager {
3232
Rbenv = "rbenv",
3333
Rvm = "rvm",
3434
Shadowenv = "shadowenv",
35+
Mise = "mise",
3536
None = "none",
3637
}
3738

@@ -379,6 +380,10 @@ class RdbgAdapterDescriptorFactory implements DebugAdapterDescriptorFactory, Ver
379380
?.activate();
380381
await this.sleepMs(500);
381382
break;
383+
case VersionManager.Mise:
384+
command = this.makeShellCommand('rbenv exec ruby -- ruby' + rubyEnvCommand);
385+
await this.injectRubyEnvironment(command, cwd);
386+
break;
382387
default:
383388
return;
384389
}

0 commit comments

Comments
 (0)