generated code to offer nix-develop as version manager #3691
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
I was having problem with setting up ruby-lsp with nix develop, and turned to the discussion board #3683 for help. After getting some tips from @vinistock I decided to see if I could submit a patch
Implementation
I am very new to both nix and vscode extension development, so most of the work is done by gemini-cli. From what I can tell, here are the changes:
nix-develop
customRubyCommand
to define the directory holding the flake.nix filevscode/src/ruby/custom.ts
, create a version fornixDevelop.ts
, that fires the command as followsAutomated Tests
I need help on this one
Manual Tests
this is my
flake.nix
and this is my workspace
settings.json