File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import org.eclipse.lsp4j.TextDocumentItem
3030import org.eclipse.lsp4j.VersionedTextDocumentIdentifier
3131import software.aws.toolkits.jetbrains.services.amazonq.lsp.AmazonQLspService
3232import software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.chat.ACTIVE_EDITOR_CHANGED_NOTIFICATION
33- import software.aws.toolkits.jetbrains.services.amazonq.lsp.util.LspEditorUtil
33+ import software.aws.toolkits.jetbrains.services.amazonq.lsp.util.LspEditorUtil.getCursorState
3434import software.aws.toolkits.jetbrains.services.amazonq.lsp.util.LspEditorUtil.toUriString
3535import software.aws.toolkits.jetbrains.utils.pluginAwareExecuteOnPooledThread
3636
@@ -170,13 +170,13 @@ class TextDocumentServiceHandler(
170170 }
171171
172172 override fun selectionChanged (event : FileEditorManagerEvent ) {
173- handleActiveEditorChange(event.newFile, event. newEditor?.let { FileEditorManager .getInstance(project).selectedTextEditor })
173+ handleActiveEditorChange(event.newEditor?.let { FileEditorManager .getInstance(project).selectedTextEditor })
174174 }
175175
176- private fun handleActiveEditorChange (file : VirtualFile ? , editor : com.intellij.openapi.editor.Editor ? ) {
176+ private fun handleActiveEditorChange (editor : com.intellij.openapi.editor.Editor ? ) {
177177 val editor = FileEditorManager .getInstance(project).selectedTextEditor
178178 val textDocumentIdentifier = editor?.let { TextDocumentIdentifier (toUriString(it.virtualFile)) }
179- val cursorState = editor?.let { LspEditorUtil . getCursorState(it) }
179+ val cursorState = editor?.let { getCursorState(it) }
180180
181181 val params = mapOf (
182182 " textDocument" to textDocumentIdentifier,
You can’t perform that action at this time.
0 commit comments