You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some docs changes (like adding decorations for linting or adjusting the height) will remove the completion. It might be better to only remove the suggestion on doc changes or selection changes.
Here is my patch that i've used:
diff --git a/dist/extension.js b/dist/extension.js
index 85ae3900124b575165fc4891e271c97bc1485b5e..7c3385b5381d0aaa4183cc2d293643a046ac2caa 100644
--- a/dist/extension.js+++ b/dist/extension.js@@ -12,6 +12,7 @@ const u = p.define({
const e = n.effects.find(
(s) => s.is(l)
);
+ if (!n.docChanged && !e && !n.selection) return t;
return n.state.doc && e && n.state.doc == e.value.doc ? { suggestion: e.value.text } : { suggestion: null };
}
}), l = S.define();
The text was updated successfully, but these errors were encountered:
Some docs changes (like adding decorations for linting or adjusting the height) will remove the completion. It might be better to only remove the suggestion on doc changes or selection changes.
Here is my patch that i've used:
The text was updated successfully, but these errors were encountered: