Skip to content

perf: register context provider while java ls ready#939

Merged
wenytang-ms merged 2 commits intomainfrom
wenyt/d1
Nov 14, 2025
Merged

perf: register context provider while java ls ready#939
wenytang-ms merged 2 commits intomainfrom
wenyt/d1

Conversation

@wenytang-ms
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR optimizes the extension activation by deferring the registration of Copilot context providers until the Java Language Server is ready, improving performance by avoiding premature registration.

Key Changes:

  • Moved registerCopilotContextProviders call from the activate function to activateExtension function
  • Registration now waits for Java Language Server readiness via languageServerApiManager.ready()
  • Added import for languageServerApiManager to access the server readiness API

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wenytang-ms wenytang-ms merged commit 3effb19 into main Nov 14, 2025
4 of 6 checks passed
@wenytang-ms wenytang-ms deleted the wenyt/d1 branch November 14, 2025 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants