Skip to content

Commit c27ad0e

Browse files
committed
package 15.04.25
1 parent b0c9b66 commit c27ad0e

File tree

20 files changed

+519
-93
lines changed

20 files changed

+519
-93
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
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.
44

5+
## [1.40.0](https://github.com/ajaxorg/ace/compare/v1.39.1...v1.40.0) (2025-04-15)
6+
7+
8+
### Features
9+
10+
* **gutter:** added keyboard handling for experimental feature custom widgets ([#5796](https://github.com/ajaxorg/ace/issues/5796)) ([8037400](https://github.com/ajaxorg/ace/commit/803740045ca73555b01116b582791fce940cbe00))
11+
512
### [1.39.1](https://github.com/ajaxorg/ace/compare/v1.39.0...v1.39.1) (2025-03-20)
613

714

ace.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ declare module "ace-builds" {
10081008
import { Range } from "ace-builds-internal/range";
10091009
import { UndoManager } from "ace-builds-internal/undomanager";
10101010
import { VirtualRenderer as Renderer } from "ace-builds-internal/virtual_renderer";
1011-
export var version: "1.39.1";
1011+
export var version: "1.40.0";
10121012
export { Range, Editor, EditSession, UndoManager, Renderer as VirtualRenderer };
10131013
}
10141014

css/ace.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ vertical-align: top;
473473
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
474474
padding-right: 13px;
475475
}
476-
.ace_fold-widget {
476+
.ace_fold-widget, .ace_custom-widget {
477477
box-sizing: border-box;
478478
margin: 0 -12px 0 1px;
479479
display: none;
@@ -486,6 +486,9 @@ border-radius: 3px;
486486
border: 1px solid transparent;
487487
cursor: pointer;
488488
}
489+
.ace_custom-widget {
490+
background: none;
491+
}
489492
.ace_folding-enabled .ace_fold-widget {
490493
display: inline-block;
491494
}

demo/kitchen-sink/demo.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8361,7 +8361,7 @@ doclist.pickDocument = function(name) {
83618361

83628362

83638363
var OptionPanel = require("ace/ext/options").OptionPanel;
8364-
var optionsPanel = new OptionPanel(env.editor);
8364+
var optionsPanel = env.optionsPanel = new OptionPanel(env.editor);
83658365

83668366
var originalAutocompleteCommand = null;
83678367

@@ -8457,7 +8457,6 @@ optionsPanel.add({
84578457
var optionsPanelContainer = document.getElementById("optionsPanel");
84588458
optionsPanel.render();
84598459
optionsPanelContainer.insertBefore(optionsPanel.container, optionsPanelContainer.firstChild);
8460-
optionsPanel.container.style.width = "80%";
84618460
optionsPanel.on("setOption", function(e) {
84628461
util.saveOption(e.name, e.value);
84638462
});
@@ -8467,6 +8466,15 @@ function updateUIEditorOptions() {
84678466
optionsPanel.render();
84688467
}
84698468

8469+
env.editor.on("changeSession", function() {
8470+
for (var i in env.editor.session.$options) {
8471+
var value = util.getOption(i);
8472+
if (value != undefined) {
8473+
env.editor.setOption(i, value);
8474+
}
8475+
}
8476+
});
8477+
84708478
optionsPanel.setOption("doc", util.getOption("doc") || "JavaScript");
84718479
for (var i in optionsPanel.options) {
84728480
var value = util.getOption(i);

demo/kitchen-sink/docs/rust.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ impl<T, U> GenericStruct<U> where (U, isize): HasAssocType<Ty = T> { /* ... */ }
4444
/*!! - Still an inner block doc (but with a bang at the beginning) */
4545

4646
/** - Outer block doc (exactly) 2 asterisks */
47+
let multiline = r##"
48+
This is a raw string.
49+
r#"nested string"#
50+
"##;
51+
let empty = br##""##;
52+
let _strings = [r"hello\", br"hello\", cr"hello\" ];
4753

4854
macro_rules! mac_variant {
4955
($vis:vis $name:ident) => {

kitchen-sink.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
<link href="./doc/site/images/favicon.ico" rel="icon" type="image/x-icon">
1313
</head>
1414
<body>
15-
<div id="sidePanel" style="position:absolute;height:100%;">
15+
<div id="sidePanel" style="position:absolute;height:100%;width:280px;">
1616
<div class="toggleButton" id="optionToggle" role="button" aria-label="Hide Options" tabindex="0">
1717
<div></div><div></div><div></div>
1818
</div>
1919
<a href="https://c9.io">
2020
<img id="c9-logo" alt="Cloud9 IDE | Your code anywhere, anytime" src="demo/kitchen-sink/logo.png" style="width: 172px;margin: -9px 30px -12px 51px;">
2121
</a>
22-
<div style="position: absolute; overflow: hidden; top:100px; bottom:0">
23-
<div id="optionsPanel" style="width: 120%; height:100%; overflow-y: scroll">
22+
<div style="position: absolute; overflow: hidden; top:100px; bottom:0;width:100%;">
23+
<div id="optionsPanel" style="height:100%; width:100%; overflow-y: auto">
2424

2525

2626
<a href="https://ace.c9.io">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ace-builds",
33
"main": "./src-noconflict/ace.js",
44
"typings": "ace.d.ts",
5-
"version": "1.39.1",
5+
"version": "1.40.0",
66
"description": "Ace (Ajax.org Cloud9 Editor)",
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 1"

src-min-noconflict/ace.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/mode-drools.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/mode-rust.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)