Commit af0604e
committed
fix: enhance Cursor and Qoder detection in SSH and DevContainer environments
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>1 parent dfb020b commit af0604e
2 files changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
302 | 307 | | |
303 | 308 | | |
304 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
305 | 325 | | |
306 | 326 | | |
307 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
740 | 767 | | |
741 | 768 | | |
742 | 769 | | |
| |||
0 commit comments