@codemirror/autocomplete 6.10.1 → 6.10.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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## 6.10.2 (2023-10-13)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug that caused `updateSyncTime` to always delay the initial population of the tooltip.
6
+
1
7
  ## 6.10.1 (2023-10-11)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -1067,7 +1067,7 @@ const completionPlugin = view.ViewPlugin.fromClass(class {
1067
1067
  if (this.debounceUpdate > -1)
1068
1068
  clearTimeout(this.debounceUpdate);
1069
1069
  this.debounceUpdate = cState.active.some(a => a.state == 1 /* State.Pending */ && !this.running.some(q => q.active.source == a.source))
1070
- ? setTimeout(() => this.startUpdate(), update.state.facet(completionConfig).updateSyncTime) : -1;
1070
+ ? setTimeout(() => this.startUpdate(), 50) : -1;
1071
1071
  if (this.composing != 0 /* CompositionState.None */)
1072
1072
  for (let tr of update.transactions) {
1073
1073
  if (getUserEvent(tr) == "input")
package/dist/index.js CHANGED
@@ -1065,7 +1065,7 @@ const completionPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {
1065
1065
  if (this.debounceUpdate > -1)
1066
1066
  clearTimeout(this.debounceUpdate);
1067
1067
  this.debounceUpdate = cState.active.some(a => a.state == 1 /* State.Pending */ && !this.running.some(q => q.active.source == a.source))
1068
- ? setTimeout(() => this.startUpdate(), update.state.facet(completionConfig).updateSyncTime) : -1;
1068
+ ? setTimeout(() => this.startUpdate(), 50) : -1;
1069
1069
  if (this.composing != 0 /* CompositionState.None */)
1070
1070
  for (let tr of update.transactions) {
1071
1071
  if (getUserEvent(tr) == "input")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/autocomplete",
3
- "version": "6.10.1",
3
+ "version": "6.10.2",
4
4
  "description": "Autocompletion for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",