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) :
123
123
124
124
open fun subscribe () {
125
125
receipts.add(
126
- editor.subscribeEvent (SelectionChangeEvent ::class .java) { event, _ ->
126
+ editor.subscribeAlways (SelectionChangeEvent ::class .java) { event ->
127
127
this .onSelectionChanged(event)
128
128
}
129
129
)
130
- receipts.add(editor.subscribeEvent (ScrollEvent ::class .java) { _, _ -> this .onScrollEvent() })
130
+ receipts.add(editor.subscribeAlways (ScrollEvent ::class .java) { this .onScrollEvent() })
131
131
receipts.add(
132
- editor.subscribeEvent (HandleStateChangeEvent ::class .java) { event, _ ->
132
+ editor.subscribeAlways (HandleStateChangeEvent ::class .java) { event ->
133
133
this .onHandleStateChanged(event)
134
134
}
135
135
)
Original file line number Diff line number Diff line change @@ -672,23 +672,23 @@ open class IDEEditor @JvmOverloads constructor(
672
672
673
673
getComponent(EditorTextActionWindow ::class .java).isEnabled = false
674
674
675
- subscribeEvent (ContentChangeEvent ::class .java) { event, _ ->
675
+ subscribeAlways (ContentChangeEvent ::class .java) { event ->
676
676
if (isReleased) {
677
- return @subscribeEvent
677
+ return @subscribeAlways
678
678
}
679
679
680
680
markModified()
681
- file ? : return @subscribeEvent
681
+ file ? : return @subscribeAlways
682
682
683
683
editorScope.launch {
684
684
dispatchDocumentChangeEvent(event)
685
685
checkForSignatureHelp(event)
686
686
}
687
687
}
688
688
689
- subscribeEvent (SelectionChangeEvent ::class .java) { _, _ ->
689
+ subscribeAlways (SelectionChangeEvent ::class .java) {
690
690
if (isReleased) {
691
- return @subscribeEvent
691
+ return @subscribeAlways
692
692
}
693
693
694
694
if (_diagnosticWindow ?.isShowing == true ) {
Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ public class SignatureHelpWindow extends BaseEditorWindow {
48
48
public SignatureHelpWindow (@ NonNull IDEEditor editor ) {
49
49
super (editor );
50
50
51
- editor .subscribeEvent (
51
+ editor .subscribeAlways (
52
52
SelectionChangeEvent .class ,
53
- ( event , unsubscribe ) -> {
53
+ event -> {
54
54
if (isShowing ()) {
55
55
dismiss ();
56
56
}
You can’t perform that action at this time.
0 commit comments