Skip to content

Support monitor multiple install path simultaneously #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zeyugao
Copy link

@zeyugao zeyugao commented Jan 3, 2025

Currently, we can only set one installPath, but what if we use vscode, vscode-insiders, cursor simultaneously? So, this pr add the support for specifying multiple install path.

@matthew-dews
Copy link

I tried this out and it works great for me, connected simultaneously with VS Code and Cursor.

@bcotton
Copy link

bcotton commented Feb 5, 2025

Ditto, works for Cursor, Thank you!

@Oops418
Copy link

Oops418 commented Mar 6, 2025

Ditto. That is awesome.

Copy link
Collaborator

@Ten0 Ten0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from this.

The mismatch between the sentence and behavior should be addressed one way or another, but I have no strong opinion on on which way: that would depend on whether it is ok to make such breaking changes in general in the nix ecosystem, which I don't consider myself to have strong knowledge about. Perhaps the best option would be to first work but display a warning, and only then in a future release remove the support for the only-str case?

README.md Outdated
@@ -140,11 +140,11 @@ This same list is also used to determine the `RPATH` when automatically patching
```

### `installPath`
The installation path for VS Code server is configurable and the default can differ for alternative builds (e.g. oss and insider), so this option allows you to configure which installation path should be monitered and automatically fixed.
The installation path for VS Code server is configurable and the default can differ for alternative builds (e.g. oss and insider), so this option allows you to configure which installation path should be monitered and automatically fixed. If you have multiple installations, you can specify them as an array.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to suggest that it's optional to specify them as an array, but AFAICT the old writing with a single value wouldn't match the option's type anymore.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the options to accept either a list of str or a bare str, using coercedTo.

@RyzeNGrind
Copy link

Any updates on this getting merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants