-
Notifications
You must be signed in to change notification settings - Fork 241
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
feat(amazonq): expose lsp server capabilities to consumers of AmazonQLspService #5417
base: feature/q-lsp
Are you sure you want to change the base?
Conversation
…LspService For certain capabilities, the client implementation needs to be aware of what resources the server is interested in. In the case of `WorkspaceEdit`, we need to expose the filters returned by the server in the initialization handshake. ```json "fileOperations": { "didCreate": { "filters": [ { "pattern": { "glob": "**/*.{ts,js,py,java}", "matches": "file" } }, { "pattern": { "glob": "**/*", "matches": "folder" } } ] }, "didRename": { "filters": [ { "pattern": { "glob": "**/*.{ts,js,py,java}", "matches": "file" } }, { "pattern": { "glob": "**/*", "matches": "folder" } } ] }, "didDelete": { "filters": [ { "pattern": { "glob": "**/*.{ts,js,py,java}", "matches": "file" } }, { "pattern": { "glob": "**/*", "matches": "folder" } } ] } } ```
c8a3ee2
to
712dbcb
Compare
Qodana Community for JVM2 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
@@ -95,6 +94,8 @@ | |||
@Service(Service.Level.PROJECT) | |||
class AmazonQLspService(private val project: Project, private val cs: CoroutineScope) : Disposable { | |||
private var instance: Deferred<AmazonQServerInstance> | |||
val capabilities |
Check notice
Code scanning / QDJVMC
Function or property has platform type Note
@@ -95,6 +94,8 @@ | |||
@Service(Service.Level.PROJECT) | |||
class AmazonQLspService(private val project: Project, private val cs: CoroutineScope) : Disposable { | |||
private var instance: Deferred<AmazonQServerInstance> | |||
val capabilities |
Check warning
Code scanning / QDJVMC
Unused symbol Warning
For certain capabilities, the client implementation needs to be aware of what resources the server is interested in. In the case of
WorkspaceEdit
, we need to expose the filters returned by the server in the initialization handshake.License
I confirm that my contribution is made under the terms of the Apache 2.0 license.