diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ecd654d8..1a0fde636 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [1.31.1](https://github.com/ajaxorg/ace/compare/v1.31.0...v1.31.1) (2023-10-30) + + +### Bug Fixes + +* improve yaml folding ([5c80e3c](https://github.com/ajaxorg/ace/commit/5c80e3cdd716b4ad26ee6958c9137278530b7816)) + ## [1.31.0](https://github.com/ajaxorg/ace/compare/v1.30.0...v1.31.0) (2023-10-23) diff --git a/css/ace.css b/css/ace.css index e5f71ae07..51dce40c5 100644 --- a/css/ace.css +++ b/css/ace.css @@ -905,6 +905,7 @@ opacity: 0.5; margin-left: 0.9em; } .ace_completion-message { +margin-left: 0.9em; color: blue; } .ace_editor.ace_autocomplete .ace_completion-highlight{ @@ -950,6 +951,29 @@ text-overflow: ellipsis; .ace_autocomplete .ace_completion-spacer { flex: 1; } +.ace_autocomplete.ace_loading:after { +content: ""; +position: absolute; +top: 0px; +height: 2px; +width: 8%; +background: blue; +z-index: 100; +animation: ace_progress 3s infinite linear; +animation-delay: 300ms; +transform: translateX(-100%) scaleX(1); +} +@keyframes ace_progress { +0% { transform: translateX(-100%) scaleX(1) } +50% { transform: translateX(625%) scaleX(2) } +100% { transform: translateX(1500%) scaleX(3) } +} +@media (prefers-reduced-motion) { +.ace_autocomplete.ace_loading:after { +transform: translateX(625%) scaleX(2); +animation: none; +} +} /*inlineautocomplete.css*/ .ace_icon_svg.ace_arrow, .ace_icon_svg.ace_arrow_rotated { diff --git a/demo/i18n.html b/demo/i18n.html index e8f5cdece..fd29c5ccf 100644 --- a/demo/i18n.html +++ b/demo/i18n.html @@ -47,6 +47,8 @@ + + + + diff --git a/demo/show_own_source.js b/demo/show_own_source.js index 2af177710..56a01f891 100644 --- a/demo/show_own_source.js +++ b/demo/show_own_source.js @@ -21,7 +21,7 @@ if (typeof ace == "undefined" && typeof require == "undefined") { function setValue() { require("ace/lib/net").get(document.baseURI, function(text) { var el = document.getElementById("editor"); - el.env.editor.session.setValue(text); + if (el) el.env.editor.session.setValue(text); }); loadAceLinters(); } diff --git a/demo/static-highlighter.html b/demo/static-highlighter.html index 511243cb0..ad35bcfe6 100644 --- a/demo/static-highlighter.html +++ b/demo/static-highlighter.html @@ -78,5 +78,6 @@

Client Side Syntax Highlighting

}); + diff --git a/demo/toolbar.html b/demo/toolbar.html index d4e979f79..38a790127 100644 --- a/demo/toolbar.html +++ b/demo/toolbar.html @@ -23,7 +23,7 @@