-
Notifications
You must be signed in to change notification settings - Fork 260
feat(amazonq): fetch filePatterns from initializeResponse for workspace messages #5457
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
Conversation
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
@@ -318,7 +318,7 @@ private class AmazonQServerInstance(private val project: Project, private val cs | |||
|
|||
DefaultAuthCredentialsService(project, encryptionManager, this) | |||
TextDocumentServiceHandler(project, this) | |||
WorkspaceServiceHandler(project, this) | |||
WorkspaceServiceHandler(project, initializeResult, this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you rebase, you should have access to the server initialize result directly instead of needing to resolve the deferred value
...rc/software/aws/toolkits/jetbrains/services/amazonq/lsp/workspace/WorkspaceServiceHandler.kt
Fixed
Show fixed
Hide fixed
...rc/software/aws/toolkits/jetbrains/services/amazonq/lsp/workspace/WorkspaceServiceHandler.kt
Fixed
Show fixed
Hide fixed
# Conflicts: # plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/workspace/WorkspaceServiceHandler.kt
still not supported by the live server, probably should wait a bit before merging |
...ains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
Outdated
Show resolved
Hide resolved
import java.nio.file.Paths | ||
|
||
class WorkspaceServiceHandler( | ||
private val project: Project, | ||
initializeResult: InitializeResult, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: do we need to send the whole result or can we send the operations?
Grab the file patterns programmatically from the server's response to initialize().
Types of changes
Description
Utilize InitializeResponse's ServerCapabilities object to get the accepted file patterns for each supported message our workspaceService is handling.
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.