Skip to content

Commit

Permalink
Fixing and simplifying New Chat keybindings logic
Browse files Browse the repository at this point in the history
  • Loading branch information
arafatkatze committed Jan 7, 2025
1 parent 898b1c8 commit 02f2f41
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ class LensesService(val project: Project) {
if (project.isDisposed) return@runInEdt
// Find the specific editor matching the file
CodyEditorUtil.getAllOpenEditors()
.find { editor -> editor.virtualFile == vf }
?.let { matchingEditor ->
CodeVisionInitializer.getInstance(project)
.getCodeVisionHost()
.invalidateProvider(
CodeVisionHost.LensInvalidateSignal(
matchingEditor, EditCodeVisionProvider.allEditProviders().map { it.id }))
}
.find { editor -> editor.virtualFile == vf }
?.let { matchingEditor ->
CodeVisionInitializer.getInstance(project)
.getCodeVisionHost()
.invalidateProvider(
CodeVisionHost.LensInvalidateSignal(
matchingEditor, EditCodeVisionProvider.allEditProviders().map { it.id }))
}
}
listeners.forEach { it.onLensesUpdate(vf, codeLens) }
}
Expand Down

0 comments on commit 02f2f41

Please sign in to comment.