@@ -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 {
@@ -217,7 +217,7 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
217217 private lastEdit : EditsSuggestionSvg | undefined
218218
219219 constructor (
220- private readonly languageClient : LanguageClient ,
220+ private readonly languageClient : BaseLanguageClient ,
221221 private readonly recommendationService : RecommendationService ,
222222 private readonly sessionManager : SessionManager ,
223223 private readonly inlineTutorialAnnotation : InlineTutorialAnnotation ,
@@ -283,7 +283,7 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
283283 firstCompletionDisplayLatency : session . firstCompletionDisplayLatency ,
284284 totalSessionDisplayTime : Date . now ( ) - session . requestStartTime ,
285285 }
286- this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
286+ void this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
287287 }
288288 }
289289
@@ -428,7 +428,7 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
428428 firstCompletionDisplayLatency : prevSession . firstCompletionDisplayLatency ,
429429 totalSessionDisplayTime : Date . now ( ) - prevSession . requestStartTime ,
430430 }
431- this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
431+ void this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
432432 this . sessionManager . clear ( )
433433 // Do not make auto trigger if user rejects a suggestion
434434 // by typing characters that does not match
@@ -500,7 +500,7 @@ ${itemLog}
500500 } ,
501501 } ,
502502 }
503- this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
503+ void this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
504504 this . sessionManager . clear ( )
505505 logstr += `- cursor moved behind trigger position. Discarding completion suggestion...`
506506 return [ ]
@@ -572,7 +572,7 @@ ${itemLog}
572572 } ,
573573 } ,
574574 }
575- this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
575+ void this . languageClient . sendNotification ( this . logSessionResultMessageName , params )
576576 this . sessionManager . clear ( )
577577 logstr += `- suggestion does not match user typeahead from insertion position. Discarding suggestion...`
578578 return [ ]
0 commit comments