Skip to content

Commit fb76a79

Browse files
authored
revert: editor state is casuing validation error
This reverts commit aec6a90.
1 parent 409b31a commit fb76a79

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

server/aws-lsp-codewhisperer/src/language-server/inline-completion/handler/inlineCompletionHandler.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ import { EMPTY_RESULT } from '../contants/constants'
4949
import { IdleWorkspaceManager } from '../../workspaceContext/IdleWorkspaceManager'
5050
import { mergeSuggestionsWithRightContext } from '../utils/mergeRightUtils'
5151
import { getTextDocument } from '../utils/textDocumentUtils'
52-
import { AmazonQTokenServiceManager } from '../../../shared/amazonQServiceManager/AmazonQTokenServiceManager'
5352

5453
export 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,

0 commit comments

Comments
 (0)