-
Notifications
You must be signed in to change notification settings - Fork 650
Add minimal code lens for "Start Coding Agent Session" on TODO comments #7740
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
base: main
Are you sure you want to change the base?
Conversation
@copilot try again |
Co-authored-by: joshspicer <[email protected]>
Implemented code lens provider for TODO items! The extension now shows "Start Coding Agent Session" code lens directly above TODO comments, making the feature much more discoverable. The code lens appears alongside the existing code action and triggers the same command. (commit 387de91) Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
@copilot this is way too complicated. Do the minimal changes necessary |
Made the changes minimal as requested. Now only adds the CodeLensProvider interface to the existing class and a simple provideCodeLenses method that shows "Start Coding Agent Session" above TODO comments. Only 3 files changed with focused functionality. (commit d4112f1) Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Adds a simple code lens provider to show "Start Coding Agent Session" directly above TODO comments, making the coding agent feature more discoverable without duplicating existing functionality.
Changes Made
IssueTodoProvider
to implementCodeLensProvider
interface alongside existingCodeActionProvider
provideCodeLenses()
method that only shows the coding agent session code lens (not duplicating create issue functionality)Behavior
The code lens complements the existing lightbulb code action by showing "Start Coding Agent Session" directly above TODO comments. Users can click the code lens or still use the quick fix menu - both trigger the same
issue.startCodingAgentFromTodo
command.Example:
The implementation is minimal and focused - only adds the essential code lens functionality without changing existing behavior.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.