@codemirror/autocomplete 6.3.1 → 6.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -712,6 +712,8 @@ class CompletionState {
|
|
|
712
712
|
if (tr.selection || active.some(a => a.hasResult() && tr.changes.touchesRange(a.from, a.to)) ||
|
|
713
713
|
!sameResults(active, this.active))
|
|
714
714
|
open = CompletionDialog.build(active, state, this.id, this.open, conf);
|
|
715
|
+
else if (open && open.disabled && !active.some(a => a.state == 1 /* State.Pending */))
|
|
716
|
+
open = null;
|
|
715
717
|
else if (open && tr.docChanged)
|
|
716
718
|
open = open.map(tr.changes);
|
|
717
719
|
if (!open && active.every(a => a.state != 1 /* State.Pending */) && active.some(a => a.hasResult()))
|
package/dist/index.js
CHANGED
|
@@ -708,6 +708,8 @@ class CompletionState {
|
|
|
708
708
|
if (tr.selection || active.some(a => a.hasResult() && tr.changes.touchesRange(a.from, a.to)) ||
|
|
709
709
|
!sameResults(active, this.active))
|
|
710
710
|
open = CompletionDialog.build(active, state, this.id, this.open, conf);
|
|
711
|
+
else if (open && open.disabled && !active.some(a => a.state == 1 /* State.Pending */))
|
|
712
|
+
open = null;
|
|
711
713
|
else if (open && tr.docChanged)
|
|
712
714
|
open = open.map(tr.changes);
|
|
713
715
|
if (!open && active.every(a => a.state != 1 /* State.Pending */) && active.some(a => a.hasResult()))
|