vscode-ruby-open-gem icon indicating copy to clipboard operation
vscode-ruby-open-gem copied to clipboard

Add gem to current workspace

Open maxim opened this issue 2 years ago • 3 comments

Would you consider making a feature, maybe an optional config, to add gem dir as a folder to the current workspace? Seems especially useful because these dirs are hard to reach in normal open dialog.

maxim avatar May 29 '23 22:05 maxim

Interesting, I've never tried that. Can you give me a more specific example to make sure I'm understanding correctly? I'm usually happy to open a specific gem in a new window for browsing, then close it afterward.

gurgeous avatar May 30 '23 01:05 gurgeous

Apologies, should've described it better. A separate window is usually ok, but in my case it would be great to open gem code in split view, and have it at fingertips in my project (for search, etc). To be specific, I'm talking the feature on the screenshot:

Screenshot 2023-05-29 at 22 01 30

For some reason I literally have no idea how to easily add a gem dir into a workspace without having to double click through the "add folder" dialog all the way to a path like this: ~/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/[gem_name].

maxim avatar May 30 '23 02:05 maxim

How about this - let's leave the issue open for a while. If another person chimes in requesting the feature, let's add it :) Shouldn't be too hard. Also happy to look at a PR!

gurgeous avatar May 31 '23 15:05 gurgeous