File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
editor/impl/src/main/java/com/itsaky/androidide/editor/ui Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,13 @@ open class EditorActionsMenu(val editor: IDEEditor) :
123123
124124 open fun subscribe () {
125125 receipts.add(
126- editor.subscribeEvent (SelectionChangeEvent ::class .java) { event, _ ->
126+ editor.subscribeAlways (SelectionChangeEvent ::class .java) { event ->
127127 this .onSelectionChanged(event)
128128 }
129129 )
130- receipts.add(editor.subscribeEvent (ScrollEvent ::class .java) { _, _ -> this .onScrollEvent() })
130+ receipts.add(editor.subscribeAlways (ScrollEvent ::class .java) { this .onScrollEvent() })
131131 receipts.add(
132- editor.subscribeEvent (HandleStateChangeEvent ::class .java) { event, _ ->
132+ editor.subscribeAlways (HandleStateChangeEvent ::class .java) { event ->
133133 this .onHandleStateChanged(event)
134134 }
135135 )
Original file line number Diff line number Diff line change @@ -672,23 +672,23 @@ open class IDEEditor @JvmOverloads constructor(
672672
673673 getComponent(EditorTextActionWindow ::class .java).isEnabled = false
674674
675- subscribeEvent (ContentChangeEvent ::class .java) { event, _ ->
675+ subscribeAlways (ContentChangeEvent ::class .java) { event ->
676676 if (isReleased) {
677- return @subscribeEvent
677+ return @subscribeAlways
678678 }
679679
680680 markModified()
681- file ? : return @subscribeEvent
681+ file ? : return @subscribeAlways
682682
683683 editorScope.launch {
684684 dispatchDocumentChangeEvent(event)
685685 checkForSignatureHelp(event)
686686 }
687687 }
688688
689- subscribeEvent (SelectionChangeEvent ::class .java) { _, _ ->
689+ subscribeAlways (SelectionChangeEvent ::class .java) {
690690 if (isReleased) {
691- return @subscribeEvent
691+ return @subscribeAlways
692692 }
693693
694694 if (_diagnosticWindow ?.isShowing == true ) {
Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ public class SignatureHelpWindow extends BaseEditorWindow {
4848 public SignatureHelpWindow (@ NonNull IDEEditor editor ) {
4949 super (editor );
5050
51- editor .subscribeEvent (
51+ editor .subscribeAlways (
5252 SelectionChangeEvent .class ,
53- ( event , unsubscribe ) -> {
53+ event -> {
5454 if (isShowing ()) {
5555 dismiss ();
5656 }
You can’t perform that action at this time.
0 commit comments