@@ -18,7 +18,7 @@ import {
1818 InlineCompletionTriggerKind ,
1919 Range ,
2020} from 'vscode'
21- import { LanguageClient } from 'vscode-languageclient'
21+ import { BaseLanguageClient } from 'vscode-languageclient'
2222import {
2323 InlineCompletionItemWithReferences ,
2424 LogInlineCompletionSessionResultsParams ,
@@ -50,7 +50,7 @@ import { DocumentEventListener } from './documentEventListener'
5050export class InlineCompletionManager implements Disposable {
5151 private disposable : Disposable
5252 private inlineCompletionProvider : AmazonQInlineCompletionItemProvider
53- private languageClient : LanguageClient
53+ private languageClient : BaseLanguageClient
5454 private sessionManager : SessionManager
5555 private recommendationService : RecommendationService
5656 private lineTracker : LineTracker
@@ -60,7 +60,7 @@ export class InlineCompletionManager implements Disposable {
6060 private documentEventListener : DocumentEventListener
6161
6262 constructor (
63- languageClient : LanguageClient ,
63+ languageClient : BaseLanguageClient ,
6464 sessionManager : SessionManager ,
6565 lineTracker : LineTracker ,
6666 inlineTutorialAnnotation : InlineTutorialAnnotation ,
@@ -140,7 +140,7 @@ export class InlineCompletionManager implements Disposable {
140140 addedDiagnostics : diagnosticDiff . added . map ( ( it ) => toIdeDiagnostics ( it ) ) ,
141141 removedDiagnostics : diagnosticDiff . removed . map ( ( it ) => toIdeDiagnostics ( it ) ) ,
142142 }
143- this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
143+ void this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
144144 this . disposable . dispose ( )
145145 this . disposable = languages . registerInlineCompletionItemProvider (
146146 CodeWhispererConstants . platformLanguageIds ,
@@ -200,7 +200,7 @@ export class InlineCompletionManager implements Disposable {
200200 firstCompletionDisplayLatency : session . firstCompletionDisplayLatency ,
201201 totalSessionDisplayTime : totalSessionDisplayTime ,
202202 }
203- this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
203+ void this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
204204 // clear session manager states once rejected
205205 this . sessionManager . clear ( )
206206 } finally {
@@ -216,7 +216,7 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
216216 private pendingRequest : Promise < InlineCompletionItem [ ] > | undefined
217217
218218 constructor (
219- private readonly languageClient : LanguageClient ,
219+ private readonly languageClient : BaseLanguageClient ,
220220 private readonly recommendationService : RecommendationService ,
221221 private readonly sessionManager : SessionManager ,
222222 private readonly inlineTutorialAnnotation : InlineTutorialAnnotation ,
@@ -282,7 +282,7 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
282282 firstCompletionDisplayLatency : session . firstCompletionDisplayLatency ,
283283 totalSessionDisplayTime : Date . now ( ) - session . requestStartTime ,
284284 }
285- this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
285+ void this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
286286 }
287287 }
288288
@@ -427,7 +427,7 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
427427 firstCompletionDisplayLatency : prevSession . firstCompletionDisplayLatency ,
428428 totalSessionDisplayTime : Date . now ( ) - prevSession . requestStartTime ,
429429 }
430- this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
430+ void this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
431431 this . sessionManager . clear ( )
432432 // Do not make auto trigger if user rejects a suggestion
433433 // by typing characters that does not match
@@ -499,7 +499,7 @@ ${itemLog}
499499 } ,
500500 } ,
501501 }
502- this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
502+ void this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
503503 this . sessionManager . clear ( )
504504 logstr += `- cursor moved behind trigger position. Discarding completion suggestion...`
505505 return [ ]
@@ -566,7 +566,7 @@ ${itemLog}
566566 } ,
567567 } ,
568568 }
569- this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
569+ void this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
570570 this . sessionManager . clear ( )
571571 logstr += `- suggestion does not match user typeahead from insertion position. Discarding suggestion...`
572572 return [ ]
0 commit comments