@codemirror/language 0.19.9 → 0.19.10

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
+ ## 0.19.10 (2022-03-31)
2
+
3
+ ### Bug fixes
4
+
5
+ Autocompletion may now also trigger automatic indentation on input.
6
+
1
7
  ## 0.19.9 (2022-03-30)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -1067,7 +1067,7 @@ added at the start of a line.
1067
1067
  */
1068
1068
  function indentOnInput() {
1069
1069
  return state.EditorState.transactionFilter.of(tr => {
1070
- if (!tr.docChanged || !tr.isUserEvent("input.type"))
1070
+ if (!tr.docChanged || !tr.isUserEvent("input.type") && !tr.isUserEvent("input.complete"))
1071
1071
  return tr;
1072
1072
  let rules = tr.startState.languageDataAt("indentOnInput", tr.startState.selection.main.head);
1073
1073
  if (!rules.length)
package/dist/index.js CHANGED
@@ -1063,7 +1063,7 @@ added at the start of a line.
1063
1063
  */
1064
1064
  function indentOnInput() {
1065
1065
  return EditorState.transactionFilter.of(tr => {
1066
- if (!tr.docChanged || !tr.isUserEvent("input.type"))
1066
+ if (!tr.docChanged || !tr.isUserEvent("input.type") && !tr.isUserEvent("input.complete"))
1067
1067
  return tr;
1068
1068
  let rules = tr.startState.languageDataAt("indentOnInput", tr.startState.selection.main.head);
1069
1069
  if (!rules.length)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/language",
3
- "version": "0.19.9",
3
+ "version": "0.19.10",
4
4
  "description": "Language support infrastructure for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",