Skip to content

Issue with git authentication in VSCode based IDEs #16649

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

Closed
matifali opened this issue Feb 21, 2025 · 0 comments · Fixed by #16654
Closed

Issue with git authentication in VSCode based IDEs #16649

matifali opened this issue Feb 21, 2025 · 0 comments · Fixed by #16654
Assignees

Comments

@matifali
Copy link
Member

matifali commented Feb 21, 2025

Problem Description

Currently, Coder has special handling for VSCode within the product that ensures proper Git authentication. However, this does not work for other VSCode-based IDEs like Cursor, which many customers now use extensively. As a result, developers using Cursor face Git authentication issues, especially when connected to remote workspaces for extended periods.

Desired Solution

Extend support to Cursor by modifying .cursor-server/data/Machine/settings.json with the necessary Git settings:

{
  "git.useIntegratedAskPass": false,
  "github.gitAuthentication": false
}

This ensures that Git authentication works correctly for Cursor IDE users.

Possible Solution(s)

This can be done in 2 ways,

  1. Modify the CLI to apply the specified settings for Cursor when configuring Git authentication.
    // code-server's default configuration path.
    filepath.Join(xdg.DataHome, "code-server", "Machine", "settings.json"),
    // vscode-remote's default configuration path.
    filepath.Join(home, ".vscode-server", "data", "Machine", "settings.json"),
  2. Use a coder_script to do the same in the cursor terraform module.

Note

The same issue could exist for other VSCode-based IDEs, i.e., WindSurf, VSCodium, Theia IDE etc.

@matifali matifali changed the title Issue with git authentication in Cursor IDE Issue with git authentication in VSCode based IDEs Feb 24, 2025
@matifali matifali self-assigned this Mar 5, 2025
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 a pull request may close this issue.

1 participant