Skip to content

Commit b0c9b66

Browse files
committed
package 21.03.25
1 parent d8f80cb commit b0c9b66

File tree

192 files changed

+937
-670
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+937
-670
lines changed

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Junk that could exist anywhere:
2+
.DS_Store
3+
*.swp
4+
*.tmp
5+
*~
6+
7+
# Project files that should not be in the repo
8+
.*
9+
\#*
10+
!/.github
11+
!/.gitignore
12+
.*.gz
13+
*.tmTheme.js
14+
package-lock.json
15+
16+
# A handy place to put stuff that git should ignore:
17+
/coverage
18+
/ignore/
19+
node_modules/
20+
jam/
21+
* *
22+
23+
.git-ref
24+
npm-debug.log
25+
deps/
26+
dist
27+
28+
lib/ace
29+
styles

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
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.39.1](https://github.com/ajaxorg/ace/compare/v1.39.0...v1.39.1) (2025-03-20)
6+
7+
8+
### Features
9+
10+
* Editing is disabled tooltip in readonly mode ([#5771](https://github.com/ajaxorg/ace/issues/5771)) ([1098e53](https://github.com/ajaxorg/ace/commit/1098e5306fdc02e873cdadc85d2e13228abfe80c))
11+
12+
13+
### Bug Fixes
14+
15+
* Fix is check in xml FoldMode ([#5752](https://github.com/ajaxorg/ace/issues/5752)) ([810c465](https://github.com/ajaxorg/ace/commit/810c4650288d32b119239f7731a3b3be0c25376c))
16+
* replace NodeList.foreach with for loop ([#5769](https://github.com/ajaxorg/ace/issues/5769)) ([b3de3c1](https://github.com/ajaxorg/ace/commit/b3de3c1d99540bd94df122cedb7c5e3a792986a7))
17+
* updateDocTooltip with undefined this.completions ([#5754](https://github.com/ajaxorg/ace/issues/5754)) ([adde072](https://github.com/ajaxorg/ace/commit/adde072dd4810aa8f99bb1e16a6ab7dfc81a6e9d))
18+
* wrong java keywords ([#5759](https://github.com/ajaxorg/ace/issues/5759)) ([6b4c7a0](https://github.com/ajaxorg/ace/commit/6b4c7a09d844a2e16d664d3e9fbb384b543bcfcb))
19+
520
## [1.39.0](https://github.com/ajaxorg/ace/compare/v1.38.0...v1.39.0) (2025-02-21)
621

722

ace.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ declare module "ace-builds" {
762762
interface CommandManagerEvents {
763763
"exec": execEventHandler;
764764
"afterExec": execEventHandler;
765+
"commandUnavailable": execEventHandler;
765766
}
766767
type CommandManager = import("ace-builds-internal/commands/command_manager").CommandManager;
767768
interface SavedSelection {
@@ -1007,7 +1008,7 @@ declare module "ace-builds" {
10071008
import { Range } from "ace-builds-internal/range";
10081009
import { UndoManager } from "ace-builds-internal/undomanager";
10091010
import { VirtualRenderer as Renderer } from "ace-builds-internal/virtual_renderer";
1010-
export var version: "1.39.0";
1011+
export var version: "1.39.1";
10111012
export { Range, Editor, EditSession, UndoManager, Renderer as VirtualRenderer };
10121013
}
10131014

css/ace.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ min-width: 100%;
8383
contain: style size layout;
8484
font-variant-ligatures: no-common-ligatures;
8585
}
86+
.ace_invisible {
87+
font-variant-ligatures: none;
88+
}
8689
.ace_keyboard-focus:focus {
8790
box-shadow: inset 0 0 0 2px #5E9ED6;
8891
outline: none;
@@ -428,7 +431,6 @@ border: 1px solid gray;
428431
border-radius: 1px;
429432
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
430433
color: black;
431-
max-width: 100%;
432434
padding: 3px 4px;
433435
position: fixed;
434436
z-index: 999999;
@@ -442,7 +444,7 @@ font-weight: normal;
442444
letter-spacing: normal;
443445
pointer-events: none;
444446
overflow: auto;
445-
max-width: min(60em, 66vw);
447+
max-width: min(33em, 66vw);
446448
overscroll-behavior: contain;
447449
}
448450
.ace_tooltip pre {

demo/kitchen-sink/demo.js

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4493,8 +4493,9 @@ var AcePopup = /** @class */ (function () {
44934493
return true;
44944494
}
44954495
var el = this.container;
4496-
var screenHeight = window.innerHeight;
4497-
var screenWidth = window.innerWidth;
4496+
var scrollBarSize = this.renderer.scrollBar.width || 10;
4497+
var screenHeight = window.innerHeight - scrollBarSize;
4498+
var screenWidth = window.innerWidth - scrollBarSize;
44984499
var renderer = this.renderer;
44994500
var maxH = renderer.$maxLines * lineHeight * 1.4;
45004501
var dims = { top: 0, bottom: 0, left: 0 };
@@ -4533,7 +4534,7 @@ var AcePopup = /** @class */ (function () {
45334534
}
45344535
if (anchor === "top") {
45354536
el.style.top = "";
4536-
el.style.bottom = (screenHeight - dims.bottom) + "px";
4537+
el.style.bottom = (screenHeight + scrollBarSize - dims.bottom) + "px";
45374538
popup.isTopdown = false;
45384539
}
45394540
else {
@@ -6182,7 +6183,7 @@ var Autocomplete = /** @class */ (function () {
61826183
};
61836184
Autocomplete.prototype.updateDocTooltip = function () {
61846185
var popup = this.popup;
6185-
var all = this.completions.filtered;
6186+
var all = this.completions && this.completions.filtered;
61866187
var selected = all && (all[popup.getHoveredRow()] || all[popup.getRow()]);
61876188
var doc = null;
61886189
if (!selected || !this.editor || !this.popup.isOpen)
@@ -6230,33 +6231,54 @@ var Autocomplete = /** @class */ (function () {
62306231
this.popup.container.appendChild(this.tooltipNode);
62316232
var popup = this.popup;
62326233
var rect = popup.container.getBoundingClientRect();
6233-
tooltipNode.style.top = popup.container.style.top;
6234-
tooltipNode.style.bottom = popup.container.style.bottom;
6235-
tooltipNode.style.display = "block";
6236-
if (window.innerWidth - rect.right < 320) {
6237-
if (rect.left < 320) {
6238-
if (popup.isTopdown) {
6239-
tooltipNode.style.top = rect.bottom + "px";
6240-
tooltipNode.style.left = rect.left + "px";
6241-
tooltipNode.style.right = "";
6242-
tooltipNode.style.bottom = "";
6243-
}
6244-
else {
6245-
tooltipNode.style.top = popup.container.offsetTop - tooltipNode.offsetHeight + "px";
6246-
tooltipNode.style.left = rect.left + "px";
6247-
tooltipNode.style.right = "";
6248-
tooltipNode.style.bottom = "";
6249-
}
6234+
var targetWidth = 400;
6235+
var targetHeight = 300;
6236+
var scrollBarSize = popup.renderer.scrollBar.width || 10;
6237+
var leftSize = rect.left;
6238+
var rightSize = window.innerWidth - rect.right - scrollBarSize;
6239+
var topSize = popup.isTopdown ? rect.top : window.innerHeight - scrollBarSize - rect.bottom;
6240+
var scores = [
6241+
Math.min(rightSize / targetWidth, 1),
6242+
Math.min(leftSize / targetWidth, 1),
6243+
Math.min(topSize / targetHeight * 0.9),
6244+
];
6245+
var max = Math.max.apply(Math, scores);
6246+
var tooltipStyle = tooltipNode.style;
6247+
tooltipStyle.display = "block";
6248+
if (max == scores[0]) {
6249+
tooltipStyle.left = (rect.right + 1) + "px";
6250+
tooltipStyle.right = "";
6251+
tooltipStyle.maxWidth = targetWidth * max + "px";
6252+
tooltipStyle.top = rect.top + "px";
6253+
tooltipStyle.bottom = "";
6254+
tooltipStyle.maxHeight = Math.min(window.innerHeight - scrollBarSize - rect.top, targetHeight) + "px";
6255+
}
6256+
else if (max == scores[1]) {
6257+
tooltipStyle.right = window.innerWidth - rect.left + "px";
6258+
tooltipStyle.left = "";
6259+
tooltipStyle.maxWidth = targetWidth * max + "px";
6260+
tooltipStyle.top = rect.top + "px";
6261+
tooltipStyle.bottom = "";
6262+
tooltipStyle.maxHeight = Math.min(window.innerHeight - scrollBarSize - rect.top, targetHeight) + "px";
6263+
}
6264+
else if (max == scores[2]) {
6265+
tooltipStyle.left = window.innerWidth - rect.left + "px";
6266+
tooltipStyle.maxWidth = Math.min(targetWidth, window.innerWidth) + "px";
6267+
if (popup.isTopdown) {
6268+
tooltipStyle.top = rect.bottom + "px";
6269+
tooltipStyle.left = rect.left + "px";
6270+
tooltipStyle.right = "";
6271+
tooltipStyle.bottom = "";
6272+
tooltipStyle.maxHeight = Math.min(window.innerHeight - scrollBarSize - rect.bottom, targetHeight) + "px";
62506273
}
62516274
else {
6252-
tooltipNode.style.right = window.innerWidth - rect.left + "px";
6253-
tooltipNode.style.left = "";
6275+
tooltipStyle.top = popup.container.offsetTop - tooltipNode.offsetHeight + "px";
6276+
tooltipStyle.left = rect.left + "px";
6277+
tooltipStyle.right = "";
6278+
tooltipStyle.bottom = "";
6279+
tooltipStyle.maxHeight = Math.min(popup.container.offsetTop, targetHeight) + "px";
62546280
}
62556281
}
6256-
else {
6257-
tooltipNode.style.left = (rect.right + 1) + "px";
6258-
tooltipNode.style.right = "";
6259-
}
62606282
};
62616283
Autocomplete.prototype.hideDocTooltip = function () {
62626284
this.tooltipTimer.cancel();

demo/kitchen-sink/docs/bro.bro

Lines changed: 0 additions & 26 deletions
This file was deleted.

demo/kitchen-sink/docs/django.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

demo/kitchen-sink/docs/fortran.f90

Lines changed: 0 additions & 33 deletions
This file was deleted.

demo/kitchen-sink/docs/java.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,21 @@ String nestedMultilineTemplates() {
3737
}
3838
""";
3939
}
40+
41+
var to = "working";
42+
43+
module com.example.myapp {
44+
/**
45+
* Test doc comment
46+
* @property test
47+
*/
48+
requires transitive java.base;
49+
//comment
50+
exports com.example.myapp.api;
51+
/*
52+
multiline comment
53+
*/
54+
opens com.example.myapp.internal to other.module;
55+
uses com.example.myapp.service.MyService;
56+
provides com.example.myapp.service.MyService with com.example.myapp.impl.MyServiceImpl;
57+
}

demo/kitchen-sink/docs/javascript.jsm

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)