File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
server/aws-lsp-codewhisperer/src/language-server/inline-completion/handler Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ import { EMPTY_RESULT } from '../contants/constants'
4949import { IdleWorkspaceManager } from '../../workspaceContext/IdleWorkspaceManager'
5050import { mergeSuggestionsWithRightContext } from '../utils/mergeRightUtils'
5151import { getTextDocument } from '../utils/textDocumentUtils'
52- import { AmazonQTokenServiceManager } from '../../../shared/amazonQServiceManager/AmazonQTokenServiceManager'
5352
5453export class InlineCompletionHandler {
5554 private isOnInlineCompletionHandlerInProgress = false
@@ -259,24 +258,6 @@ export class InlineCompletionHandler {
259258 maxResults,
260259 }
261260
262- if ( this . amazonQServiceManager instanceof AmazonQTokenServiceManager ) {
263- ; ( requestContext as GenerateTokenSuggestionsRequest ) . editorState = {
264- document : {
265- relativeFilePath : textDocument . uri ,
266- programmingLanguage : {
267- languageName : requestContext . fileContext ?. programmingLanguage ?. languageName ,
268- } ,
269- text : textDocument . getText ( ) ,
270- } ,
271- cursorState : {
272- position : {
273- line : params . position . line ,
274- character : params . position . character ,
275- } ,
276- } ,
277- }
278- }
279-
280261 const codeWhispererService = this . amazonQServiceManager . getCodewhispererService ( )
281262 const supplementalContext = await codeWhispererService . constructSupplementalContext (
282263 textDocument ,
You can’t perform that action at this time.
0 commit comments