feature: Add GitHub Copilot support (CLI and CHAT) ‼️‼️‼️#129
feature: Add GitHub Copilot support (CLI and CHAT) ‼️‼️‼️#129npkriami18 wants to merge 4 commits intotirth8205:mainfrom
Conversation
tirth8205
left a comment
There was a problem hiding this comment.
Thanks for adding Copilot support! The structure is solid. A few issues to fix:
-
CHANGELOG version regression. The PR adds a
[2.1.1]entry, but we're already at[2.2.1]. Please remove the CHANGELOG entry — we'll add it when we cut the next release. -
Detection is too broad.
_copilot_vscode_detectedreturnsTrueif any VS Code directory exists — but that proves VS Code is installed, not Copilot. Every VS Code user would get Copilot MCP config injected. Other platforms check for platform-specific directories. Consider checking for the Copilot extension directory instead (e.g.,~/.vscode/extensions/github.copilot-*). -
Writes to VS Code's global settings.json. This is more invasive than other platforms which use dedicated config files. A misconfigured write could corrupt VS Code settings. Please add extra caution here (e.g., validate the JSON structure before writing).
-
Tests are shallow. The existing
TestPlatformInstalltests verify actual file writes and JSON structure. Please add similar tests for Copilot (not just thatdetect()returns a bool).
Thank you for the feedback! I've addressed all the points:
|
aede802 to
95c4421
Compare
Review: PR #129 — feature: Add GitHub Copilot supportThe owner already requested changes and the author has addressed them in a follow-up commit. Looking at the current state of the diff: What was fixed (per author's comment):
Remaining issues:
The owner's original |
|
Merge conflict detected. This PR has merge conflicts with main (mergeStateStatus: DIRTY). Please rebase on main and also address the cross-platform config path issue noted above (macOS uses ~/Library/Application Support/Code/User/settings.json, not ~/.config/Code/User/settings.json). Both issues need to be resolved before this can merge. |
95c4421 to
570c6f3
Compare
@tirth8205 Done
Full test suite was run locally: 673 passed (5 skipped, 2 xpassed). Please re-review when you can and merge if this looks good. Happy to adjust anything else you want changed. |
|
Skipping auto-merge: after #142 (platform target filters) landed on |
Adds MCP server integration for: - GitHub Copilot (VS Code Extension) - GitHub Copilot Chat (VS Code) - GitHub Copilot CLI Uses `--platform copilot` for VS Code variant Uses `--platform copilot-cli` for CLI variant Platforms now: 10 (was 8) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Made-with: Cursor
570c6f3 to
dc1340f
Compare
|
|
Hi @tirth8205 , can you please merge this PR , getting many merge conflicts because of other merges |
|
Can this be merged? It's a good, needed thing |
|
Thanks for adding Copilot support! However, the |
Resolve conflicts in cli.py, skills.py, README.md, docs/USAGE.md so that the GitHub Copilot (VS Code) and GitHub Copilot CLI platforms coexist with the platforms added on main since the previous rebase (Kiro, Qoder, etc.). Fixes the malformed PLATFORMS['copilot-cli'] entry introduced by the prior rebase, which was missing 'format', 'needs_type', and its closing brace — causing the Kiro entry from tirth8205#267 to be nested inside it instead of being a sibling. - skills.py: PLATFORMS now contains 13 well-formed sibling entries. - cli.py: --platform choices use _PLATFORM_CHOICES (from main) extended with 'copilot' and 'copilot-cli' so the new flag style is preserved. - README.md / docs/USAGE.md: merged platform listings to include all upstream additions plus the GitHub Copilot rows and setup section. All Copilot-related tests pass (92/92 in test_skills.py). Pre-existing failures on main (Julia parser, shebang detection, module-scope calls, notebook tests, --tools flag) are unrelated to this PR. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@tirth8205 rebased onto current What changed since the last review
Local validation
Please re-review when you have a moment — happy to address anything else. |
@tirth8205 — fixed in What happened: my previous rebase onto main landed right after Kiro (#267) merged, and the three-way merge textually interleaved the tail of Fix in this push:
Local validation
Could you please approve the CI run and merge when you have a moment? Every time |
|
Update: I superseded the two earlier scoped PRs with a single unified restoration PR — #365 — which takes the suite from cc @tirth8205 |
|
@tirth8205 friendly ping on this one too 🙏 All your earlier review feedback has been addressed in Unrelated heads-up: I've also opened #365 to restore 8 silently-reverted parser PRs and fix the Would really appreciate a review/merge here whenever you have a moment 🙇 |
|
@tirth8205 quick note on merge order 🙏 Please merge #365 first, then this PR (#129). #365 restores |
|
Good news on conflicts — checked the changed-file lists for both PRs:
Zero file overlap → no merge conflicts in either order. The recommendation to merge #365 first is purely about CI signal quality (so #129 lands on a green baseline), not about conflict avoidance. |
…lot-support # Conflicts: # tests/test_skills.py
Adds MCP server integration for:
Uses
--platform copilotfor VS Code variantUses
--platform copilot-clifor CLI variantPlatforms now: 10 (was 8)