Skip to content

Conversation

@rinOfTheStars
Copy link
Contributor

Adds the ability to manually define the IDE cli tool name to ./packages/cursorless-vscode/scripts/install-from-pr.sh, [...]/install-local.sh, and [...]/uninstall-local.sh, and updates ./packages/cursorless-org-docs/src/docs/contributing/CONTRIBUTING.mdx to reflect these changes.

Soft-blocks #3092 since I use VSCodium and can't (un)install a local plugin version without this fix.

This requires changing set -euo pipefail to set -eo pipefail at the start of all three scripts, which might have unforeseen consequences I can't think of right now; I'm also certain there's a better way to demarcate an argument as being optional than how I did it in install-from-pr.sh but IDK what that would be, so feel free to change it to something less garbage!

@AndreasArvidsson
Copy link
Member

Do you still need this? I personally don't use these scripts, but if you do I have no problem with updating them to support more editors.

Regarding -u I would like to keep this. ChatGPT had this to say.

image

@auscompgeek
Copy link
Member

I agree we should keep set -u. It seems like this PR has overcomplicated the approach, where a single variable should do the job.

auscompgeek added a commit that referenced this pull request Oct 31, 2025
Add CURSORLESS_VSCODE_COMMAND environment variable to allow using
VS Code forks like VSCodium, Cursor, etc. in the install scripts.

- install-from-pr.sh: Use env var with fallback to 'code'
- install-local.sh: Use env var with fallback to 'code'
- uninstall-local.sh: Use env var with fallback to 'code'
- Updated error messages with helpful installation guidance
- Maintains backward compatibility

Closes #3093

Amp-Thread-ID: https://ampcode.com/threads/T-51f7db4c-7163-40d8-a87e-bfd7a6764249
Co-authored-by: Amp <[email protected]>
@auscompgeek
Copy link
Member

I've opened #3096 with an alternative approach.

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.

3 participants