Skip to content

Commit

Permalink
fix small regressions caused by ace update
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Jun 27, 2018
1 parent e5274f2 commit d8917f3
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 36 deletions.
1 change: 1 addition & 0 deletions plugins/c9.ide.collab/chat/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ define(function(require, exports, module) {
minLines: 2,
fontFamily: "inherit"
});
chatInput.ace.session.$enableVarChar = true;
chatInput.ace.session.$setFontMetrics(chatInput.ace.renderer.$fontMetrics);

plugin.addElement(chatInput);
Expand Down
4 changes: 4 additions & 0 deletions plugins/c9.ide.immediate/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@
.ace_lineWidgetContainer:after{
background: transparent;
}
.ace_lineWidgetContainer {
z-index: 5;
position: absolute;
}

/* ace_dark */

Expand Down
2 changes: 1 addition & 1 deletion plugins/c9.ide.layout.classic/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ define(function(require, exports, module) {
return callback();

anims.animateSplitBoxNode(amlNode, {
height: amlNode.$ext.scrollHeight + "px",
height: amlNode.$ext.offsetHeight + "px",
duration: 0.2,
timingFunction: "cubic-bezier(.10, .10, .25, .90)"
}, function() {
Expand Down
14 changes: 11 additions & 3 deletions plugins/c9.ide.run.debug/callstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ define(function(require, exports, module) {
var sources = [];
var frames = [];

var activeFrame, dbg, menu, button, lastException;
var activeFrame, dbg, menu, button, lastException, sourceListTimer;

var loaded = false;
function load() {
Expand Down Expand Up @@ -578,7 +578,7 @@ define(function(require, exports, module) {

function loadSources(input) {
sources = input;
modelSources.setRoot(sources);
updateSourceTree();
}

function clearFrames() {
Expand All @@ -587,7 +587,15 @@ define(function(require, exports, module) {

function addSource(source) {
sources.push(source);
modelSources.setRoot(sources);
updateSourceTree();
}

function updateSourceTree() {
if (sourceListTimer) return;
sourceListTimer = setTimeout(function() {
sourceListTimer = null;
modelSources.setRoot(sources);
}, 100);
}

function updateAll() {
Expand Down
2 changes: 2 additions & 0 deletions plugins/c9.ide.run.debug/watches.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ define(function(require, exports, module) {
updateAll();
});
debug.on("exception", function(e) {
if (errorWatch)
removeWatch(errorWatch);
errorWatch = e.exception;
addWatch(errorWatch);
model.expand(errorWatch);
Expand Down
6 changes: 5 additions & 1 deletion plugins/c9.ide.terminal/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,8 @@
.c9terminalcontainer .cover-link:hover {
opacity: 1;
text-decoration: underline;
}
}

.terminal > .ace_line {
contain: style size layout!important;
}
13 changes: 6 additions & 7 deletions plugins/c9.ide.terminal/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,13 +668,12 @@ define(function(require, exports, module) {
var screenBottom = config.height - coverHeight + config.offset + 2;
var screenRight = (cols - this.width) * config.characterWidth;

html.push("<div style='height:", coverHeight, "px;", "left:0; right: ", screenRight, "px; top:", screenBottom, "px;' ",
"class='c9terminalcontainer cover bottom'></div>",
"<div style='width:", screenRight, "px; height: ", screenBottom, "px; top:0; right:0;' ",
"class='c9terminalcontainer cover right'></div>",
"<div style='width:", screenRight, "px; bottom:0; top:", screenBottom, "px; right:0;' ",
"class='c9terminalcontainer cover'></div>"
);
markerLayer.elt("c9terminalcontainer cover bottom",
"height:" + coverHeight + "px;" + "left:0; right: " + screenRight + "px; top:" + screenBottom + "px;");
markerLayer.elt("c9terminalcontainer cover right",
"width:" + screenRight + "px; height: " + screenBottom + "px; top:0; right:0;");
markerLayer.elt("c9terminalcontainer cover",
"width:" + screenRight + "px; bottom:0; top:" + screenBottom + "px; right:0;");
};
aceSession.addDynamicMarker(marker, true);
aceSession.term.tmuxDotCover = marker;
Expand Down
2 changes: 1 addition & 1 deletion plugins/c9.vfs.standalone/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function plugin(options, imports, register) {
var base = __dirname + "/../../";
var blacklistfile = base + "/test/blacklist.txt";
var filefinder = require(base + "/test/lib/filefinder.js");
filefinder.find(base, "plugins", ".*_test.js", blacklistfile, function(err, result) {
filefinder.find(base, "plugins", ".*_test.(js|ts)", blacklistfile, function(err, result) {
result.all = result.list.concat(result.blacklist);
async.filterSeries(result.list, function(path, next) {
fs.readFile(base + path, "utf8", function(err, file) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/node_modules/ace_tree/lib/ace_tree/edit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 25 additions & 22 deletions plugins/node_modules/architect-build/transform.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8917f3

Please sign in to comment.