-
Notifications
You must be signed in to change notification settings - Fork 273
feat(amazonq): implement inlineCompletionWithReferences #5486
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
Changes from 9 commits
39f2f5b
7204f2a
7b41616
497cbdb
430bf1b
0b95441
dad393e
8a93408
fa5b08a
37c88e3
ae44899
4f62d74
c9cdb9e
a2afd32
ee72f6d
8af0bb3
e60ee13
72d1c1f
9cfb452
bf77c91
2ddd138
6ebef65
7bf9e83
8eca4ad
a5c4c1a
87292a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument | ||
|
|
||
| data class InlineCompletionContext( | ||
| var triggerKind: InlineCompletionTriggerKind, | ||
| var selectedCompletionInfo: SelectedCompletionInfo? = null | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument | ||
|
|
||
| data class InlineCompletionItem( | ||
| var itemId: String, | ||
| var insertText: String, | ||
| var references: Array<InlineCompletionReference>, | ||
|
Check notice on line 9 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/model/aws/textDocument/InlineCompletionItem.kt
|
||
|
||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument | ||
|
|
||
| data class InlineCompletionListWithReferences( | ||
| var items: List<InlineCompletionItem>, | ||
| var sessionId: String | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument | ||
|
|
||
| data class InlineCompletionReference( | ||
| var referenceName: String, | ||
| var referenceUrl: String, | ||
| var licenseName: String, | ||
| var position: InlineCompletionReferencePosition | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument | ||
|
|
||
| data class InlineCompletionReferencePosition( | ||
| var startCharacter: Int = 0, | ||
| var endCharacter: Int = 0 | ||
| ) | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument | ||
|
|
||
| enum class InlineCompletionTriggerKind(val value: Int) { | ||
| Invoke(0), | ||
| Automatic(1) | ||
|
Check warning on line 8 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/model/aws/textDocument/InlineCompletionTriggerKind.kt
|
||
|
||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument | ||
|
|
||
| import org.eclipse.lsp4j.TextDocumentPositionAndWorkDoneProgressParams | ||
|
|
||
| data class InlineCompletionWithReferencesParams( | ||
| var context: InlineCompletionContext | ||
| ) : TextDocumentPositionAndWorkDoneProgressParams() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument | ||
|
|
||
| import org.eclipse.lsp4j.Range; | ||
|
||
|
|
||
| data class SelectedCompletionInfo( | ||
| var text: String, | ||
| var range: Range | ||
| ) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.