File tree Expand file tree Collapse file tree 9 files changed +87
-0
lines changed Expand file tree Collapse file tree 9 files changed +87
-0
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,18 @@ import org.eclipse.lsp4j.jsonrpc.services.JsonRequest
99import org.eclipse.lsp4j.services.LanguageServer
1010import software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.credentials.UpdateCredentialsPayload
1111import software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.dependencies.SyncModuleDependenciesParams
12+ import software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument.InlineCompletionListWithReferences
13+ import software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument.InlineCompletionWithReferencesParams
1214import java.util.concurrent.CompletableFuture
1315
1416/* *
1517 * Remote interface exposed by the Amazon Q language server
1618 */
1719@Suppress(" unused" )
1820interface AmazonQLanguageServer : LanguageServer {
21+ @JsonRequest(" aws/textDocument/inlineCompletionWithReferences" )
22+ fun inlineCompletionWithReferences (params : InlineCompletionWithReferencesParams ): CompletableFuture <InlineCompletionListWithReferences >
23+
1924 @JsonNotification(" aws/syncModuleDependencies" )
2025 fun syncModuleDependencies (params : SyncModuleDependenciesParams ): CompletableFuture <Unit >
2126
Original file line number Diff line number Diff line change 1+ // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument
5+
6+ data class InlineCompletionContext (
7+ var triggerKind : InlineCompletionTriggerKind ,
8+ var selectedCompletionInfo : SelectedCompletionInfo ? = null
9+ )
Original file line number Diff line number Diff line change 1+ // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument
5+
6+ data class InlineCompletionItem (
7+ var itemId : String ,
8+ var insertText : String ,
9+ var references : Array <InlineCompletionReference >,
10+ )
Original file line number Diff line number Diff line change 1+ // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument
5+
6+ data class InlineCompletionListWithReferences (
7+ var items : List <InlineCompletionItem >,
8+ var sessionId : String
9+ )
Original file line number Diff line number Diff line change 1+ // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument
5+
6+ data class InlineCompletionReference (
7+ var referenceName : String ,
8+ var referenceUrl : String ,
9+ var licenseName : String ,
10+ var position : InlineCompletionReferencePosition
11+ )
Original file line number Diff line number Diff line change 1+ // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument
5+
6+ data class InlineCompletionReferencePosition (
7+ var startCharacter : Int = 0 ,
8+ var endCharacter : Int = 0
9+ )
10+
Original file line number Diff line number Diff line change 1+ // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument
5+
6+ enum class InlineCompletionTriggerKind (val value : Int ) {
7+ Invoke (0 ),
8+ Automatic (1 )
9+ }
10+
Original file line number Diff line number Diff line change 1+ // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument
5+
6+ import org.eclipse.lsp4j.TextDocumentPositionAndWorkDoneProgressParams
7+
8+ data class InlineCompletionWithReferencesParams (
9+ var context : InlineCompletionContext
10+ ) : TextDocumentPositionAndWorkDoneProgressParams()
Original file line number Diff line number Diff line change 1+ // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.textDocument
5+
6+ import org.eclipse.lsp4j.Range;
7+
8+ data class SelectedCompletionInfo (
9+ var text : String ,
10+ var range : Range
11+ )
12+
13+
You can’t perform that action at this time.
0 commit comments