Skip to content

Fix editor context retrieval due to async chat operation #27

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

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

NickChecan
Copy link
Member

@NickChecan NickChecan commented Jan 17, 2025

Developer Information:

The following changes are going to fix the issue related to copilot not being able to read content from the active editor as the chat orchestrator is now an async operation.
The content reading method was moved to the prompt handler function in order to be executed in the required UI thread.

AI Summary:

This pull request introduces several changes to the ChatOrchestrator class and its related components to enhance the handling of editor content as context for AI-generated responses. The most important changes include modifying method signatures, updating test cases, and importing necessary utilities.

Changes to ChatOrchestrator and related interfaces:

Updates to PromptHandler:

Test case adjustments:

Copy link

@NickChecan NickChecan merged commit a4f3c7f into main Jan 17, 2025
3 checks passed
@NickChecan NickChecan deleted the fix-context branch January 17, 2025 23:14
@NickChecan
Copy link
Member Author

🎉 This PR is included in version 1.1.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant