Skip to content
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

Pass client information to LSPs for user agent #14

Merged
merged 4 commits into from
Sep 17, 2024

Conversation

breedloj
Copy link
Contributor

Issue #, if available:

Description of changes:
Change to include details about the Eclipse plugin as part of the LSP InitializeRequest that is sent down to LSPs during the initial handshake. This will be used by FLARE based LSP components to populate the user agent included in calls to AWS APIs.

Example UA after this change: AWS-Language-Servers AWS-CodeWhisperer/0.1.0 amazon-q-eclipse/0.0.1.snapshot

Change also cleans up the plugin name and version and includes refactoring of both LSP connection providers over a common base class.

This change also migrates away from a hardcoded, Mac specific node executable location for the Auth component, instead using the version which is retrieved by the Q FLARE artifact. This will be necessary for non Mac development, though in the long term it is expected that these two components will merge or have their own Node distributable.

Finally, this change fixes a number of Checkstyle errors that had slipped in to the codebase.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@breedloj breedloj merged commit 8e6b762 into main Sep 17, 2024
1 check failed
@breedloj breedloj deleted the breedloj/lspClientInfo branch September 17, 2024 23:05
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.

1 participant