Skip to content
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

vscode: Support Cursor AI #6417

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

HyunggyuJang
Copy link
Contributor

Description

Support Cursor AI IDE as a VSCode family.

Checklist

  • Change is backwards compatible.

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.all
    or nix build --reference-lock-file flake.lock ./tests#test-all using Flakes.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.

Maintainer CC

@Lalit64
Copy link

Lalit64 commented Mar 1, 2025

Hey, is there any updates on the state of this?

@HyunggyuJang
Copy link
Contributor Author

@rycee Sorry to mention; can you take a look?

@HyunggyuJang HyunggyuJang force-pushed the feature/support-cursor-ai branch from 248f678 to 7ac083b Compare March 2, 2025 06:48
@Lalit64
Copy link

Lalit64 commented Mar 5, 2025

@teto, Is it possible maybe to add an option to where you can specify the package to pkgs.emptyDirectory and way to specify configDir.

@teto teto merged commit def0dbb into nix-community:master Mar 5, 2025
3 checks passed
@teto
Copy link
Collaborator

teto commented Mar 5, 2025

@Lalit64 I dunno I dont use vscode

@tylergets
Copy link

tylergets commented Mar 5, 2025

I tested this and I don't believe extensions are working correctly here because the cursor package is wrapping an app image https://github.com/NixOS/nixpkgs/blob/nixos-24.11/pkgs/by-name/co/code-cursor/package.nix

@HyunggyuJang
Copy link
Contributor Author

HyunggyuJang commented Mar 6, 2025

I tested this and I don't believe extensions are working correctly here because the cursor package is wrapping an app image https://github.com/NixOS/nixpkgs/blob/nixos-24.11/pkgs/by-name/co/code-cursor/package.nix

I’m using it so far (about one month), there were no issues. This change is just setting the user config location appropriately so that the cursor can look up for it.
You might find my config helpful: https://github.com/HyunggyuJang/nix-config/blob/master/darwin/configuration.nix#L791

@HyunggyuJang
Copy link
Contributor Author

Ah, on linux side, things might be different as you said it is using app image, haven’t tested that. It might be a tricky issue. @tylergets Do you have any idea to resolve that?

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.

4 participants