fix: enhance Cursor and Qoder detection in SSH and DevContainer environments#2
Closed
yyuuttaaoo wants to merge 1 commit into
Closed
Conversation
…onments This commit improves the detection logic for Cursor and Qoder IDEs by adding pattern matching for environment variables VSCODE_GIT_ASKPASS_MAIN and BROWSER that contain '.cursor-server' or '.qoder-server' substrings. This fixes issues where the IDE detection was not working properly in SSH and DevContainer environments. The changes include: 1. Added new environment variable patterns in envConfigs for Cursor and Qoder detection 2. Enhanced getCoDevelopedBy function to support substring pattern matching 3. Added comprehensive tests to verify the new detection logic This ensures that users working in remote development environments (SSH, DevContainer) will have proper Co-developed-by trailers added to their commits when using Cursor or Qoder. Change-Id: Ieb98755b1c0aa178b49484b2cdc613c11f90df39 Co-developed-by: Qoder <noreply@qoder.com>
Contributor
|
Hi @yyuuttaaoo 我修改了你的提交说明,做了折行,避免提交说明单行过长。 |
Contributor
|
我先关闭这个 PR,请到 PR #3 查看你和我各一个提交。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit improves the detection logic for Cursor and Qoder IDEs by adding
pattern matching for environment variables VSCODE_GIT_ASKPASS_MAIN and BROWSER
that contain '.cursor-server' or '.qoder-server' substrings. This fixes issues
where the IDE detection was not working properly in SSH and DevContainer environments.
The changes include:
This ensures that users working in remote development environments (SSH, DevContainer)
will have proper Co-developed-by trailers added to their commits when using Cursor or Qoder.
Change-Id: Ieb98755b1c0aa178b49484b2cdc613c11f90df39
Co-developed-by: Qoder noreply@qoder.com