kopia lustrzana https://github.com/c9/core
Merge pull request +13191 from c9/ide-fix-various
fix several ide issuespull/284/head
commit
c5a2fdf255
|
@ -258,6 +258,7 @@ var EditableTree = function(tree) {
|
||||||
|
|
||||||
var ace = this.ace;
|
var ace = this.ace;
|
||||||
this.ace = null;
|
this.ace = null;
|
||||||
|
this.$lastAce = ace;
|
||||||
ace.renderer.freeze();
|
ace.renderer.freeze();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
// doing this after timeout to allow rename event focus something else
|
// doing this after timeout to allow rename event focus something else
|
||||||
|
@ -267,6 +268,7 @@ var EditableTree = function(tree) {
|
||||||
ace.wrapper.parentNode.removeChild(ace.wrapper);
|
ace.wrapper.parentNode.removeChild(ace.wrapper);
|
||||||
if (wasFocused)
|
if (wasFocused)
|
||||||
this.tree.focus();
|
this.tree.focus();
|
||||||
|
this.$lastAce = null;
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -386,6 +388,7 @@ var EditableTree = function(tree) {
|
||||||
|
|
||||||
var val = this.ace.getValue();
|
var val = this.ace.getValue();
|
||||||
|
|
||||||
|
this._destroyEditor();
|
||||||
|
|
||||||
if (!cancel && this.origVal !== val) {
|
if (!cancel && this.origVal !== val) {
|
||||||
this.tree._emit("rename", {
|
this.tree._emit("rename", {
|
||||||
|
@ -396,8 +399,6 @@ var EditableTree = function(tree) {
|
||||||
});
|
});
|
||||||
this.tree.provider._signal("change");
|
this.tree.provider._signal("change");
|
||||||
}
|
}
|
||||||
|
|
||||||
this._destroyEditor();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}).call(EditableTree.prototype);
|
}).call(EditableTree.prototype);
|
||||||
|
|
|
@ -1562,7 +1562,7 @@ module.exports = function setup(fsOptions) {
|
||||||
// todo add resize event
|
// todo add resize event
|
||||||
proc.emit("data", {rows: rows, cols: cols});
|
proc.emit("data", {rows: rows, cols: cols});
|
||||||
|
|
||||||
if (!tmuxWarned) {
|
if (!tmuxWarned && !isWin) {
|
||||||
if (/v0\.([123456789]\..*|10\.(0|1|2[0-7]))/.test(process.version)) {
|
if (/v0\.([123456789]\..*|10\.(0|1|2[0-7]))/.test(process.version)) {
|
||||||
proc.emit("data", {
|
proc.emit("data", {
|
||||||
message: "Wrong Node.js version: " + process.version,
|
message: "Wrong Node.js version: " + process.version,
|
||||||
|
@ -2020,7 +2020,8 @@ module.exports = function setup(fsOptions) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.resize = function() {
|
this.resize = function() {
|
||||||
return pty.resize.apply(pty, arguments);
|
if (!exited)
|
||||||
|
return pty.resize.apply(pty, arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
// this.acknowledgeWrite = function(callback) {
|
// this.acknowledgeWrite = function(callback) {
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
"c9.ide.run.build": "#0598fff697",
|
"c9.ide.run.build": "#0598fff697",
|
||||||
"c9.ide.run.debug.xdebug": "#9956689819",
|
"c9.ide.run.debug.xdebug": "#9956689819",
|
||||||
"c9.ide.save": "#4cda35bfdb",
|
"c9.ide.save": "#4cda35bfdb",
|
||||||
"c9.ide.scm": "#219b66019a",
|
"c9.ide.scm": "#637a68cd04",
|
||||||
"c9.ide.terminal.monitor": "#affa33572f",
|
"c9.ide.terminal.monitor": "#affa33572f",
|
||||||
"c9.ide.test": "#102942ae4e",
|
"c9.ide.test": "#102942ae4e",
|
||||||
"c9.ide.test.mocha": "#fc053b23d2",
|
"c9.ide.test.mocha": "#fc053b23d2",
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
.btn-switcher {
|
.btn-switcher {
|
||||||
.user-select(none);
|
.user-select(none);
|
||||||
|
-webkit-display: flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
align-items: center;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
line-height: 19px;
|
|
||||||
font-size: @preview-chooser-font-size;
|
font-size: @preview-chooser-font-size;
|
||||||
font-weight: @preview-chooser-font-weight;
|
font-weight: @preview-chooser-font-weight;
|
||||||
color: ;
|
color: ;
|
||||||
|
@ -46,6 +48,5 @@
|
||||||
.btn-switcherIcon {
|
.btn-switcherIcon {
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
padding-left: 25px;
|
padding-left: 25px;
|
||||||
padding-top: 5px;
|
background-position: 5px 50%
|
||||||
background-position: 5px 6px;
|
|
||||||
}
|
}
|
|
@ -221,7 +221,7 @@ define(function(require, exports, module) {
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
ace.onPaste = function(text) {
|
ace.onPaste = function(text) {
|
||||||
this.send(text.replace(/\r\n/g, "\n"));
|
this.send(text.replace(/\r\n?|\n/g, this.session.term.convertEol ? "\n" : "\r"));
|
||||||
};
|
};
|
||||||
|
|
||||||
ace.setKeyboardHandler(this);
|
ace.setKeyboardHandler(this);
|
||||||
|
|
|
@ -520,7 +520,7 @@ define(function(require, exports, module) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dirname(newpath) != dirname(path)) {
|
if (dirname(newpath) != dirname(path)) {
|
||||||
tree.edit.ace.blur(); // TODO this shouldn't be needed when apf focus works
|
tree.edit.$lastAce && tree.edit.$lastAce.blur(); // TODO this shouldn't be needed when apf focus works
|
||||||
question(
|
question(
|
||||||
"Confirm move to a new folder",
|
"Confirm move to a new folder",
|
||||||
"move '" + e.oldValue + "' to \n" +
|
"move '" + e.oldValue + "' to \n" +
|
||||||
|
|
Ładowanie…
Reference in New Issue