Add minimal code lens for "Start Coding Agent Session" on TODO comments#7740
Add minimal code lens for "Start Coding Agent Session" on TODO comments#7740
Conversation
|
@copilot try again |
Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>
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:
|
alexr00
left a comment
There was a problem hiding this comment.
@joshspicer, still want to do this one?
|
Thanks for the reminder - yes. I'll start over for maximum self-hosting |
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
IssueTodoProviderto implementCodeLensProviderinterface alongside existingCodeActionProviderprovideCodeLenses()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.startCodingAgentFromTodocommand.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.