kopia lustrzana https://github.com/c9/core
Merge pull request +6455 from c9/debugger
Fix debugger not pausing on breakpoints - Smoke tested on local standalone - Reviewed as per DoD Level 1pull/39/head^2
rodzic
2c7a6b2055
commit
f50cb5ff6c
|
@ -49,4 +49,27 @@ body {
|
||||||
border-left: 1px solid;
|
border-left: 1px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ace_tree-light .toggler {
|
||||||
|
overflow: visible;
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
background-image: url(../lib/ace_tree/css/tree_close_arrow_small.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 0px 0px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.ace_tree-light {
|
||||||
|
background-image: url(../lib/ace_tree/css/tree_background.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ace_tree_focus.ace_tree-light .tree-row.selected {
|
||||||
|
border-top: 1px solid #3A9BEC;
|
||||||
|
border-bottom: 1px solid #185F97;
|
||||||
|
background: linear-gradient(center bottom, #1f82d2 0%, #2890e5 100%) repeat scroll 0 0 transparent;
|
||||||
|
color: #f8f8f8;
|
||||||
|
}
|
||||||
|
.ace_tree_focus.ace_tree-light .tree-row.selected .tree-column{
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
}
|
|
@ -164,6 +164,7 @@ function DefaultHandlers(mouseHandler) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.onMouseUp = function(ev) {
|
this.onMouseUp = function(ev) {
|
||||||
|
if (this.isMousePressed) return;
|
||||||
var pos = ev.getDocumentPosition();
|
var pos = ev.getDocumentPosition();
|
||||||
var node = this.editor.provider.findItemAtOffset(pos.y);
|
var node = this.editor.provider.findItemAtOffset(pos.y);
|
||||||
if (node && this.$clickNode && this.$clickNode == node) {
|
if (node && this.$clickNode && this.$clickNode == node) {
|
||||||
|
|
|
@ -54,7 +54,7 @@ var MouseHandler = function(editor) {
|
||||||
});
|
});
|
||||||
|
|
||||||
event.addListener(mouseTarget, "mousemove", this.onMouseEvent.bind(this, "mousemove"));
|
event.addListener(mouseTarget, "mousemove", this.onMouseEvent.bind(this, "mousemove"));
|
||||||
// event.addListener(mouseTarget, "mouseup", this.onMouseEvent.bind(this, "mouseup"));
|
event.addListener(mouseTarget, "mouseup", this.onMouseEvent.bind(this, "mouseup"));
|
||||||
event.addMultiMouseDownListener(mouseTarget, [300, 300, 250], this, "onMouseEvent");
|
event.addMultiMouseDownListener(mouseTarget, [300, 300, 250], this, "onMouseEvent");
|
||||||
event.addMultiMouseDownListener(editor.renderer.scrollBarV.inner, [300, 300, 250], this, "onMouseEvent");
|
event.addMultiMouseDownListener(editor.renderer.scrollBarV.inner, [300, 300, 250], this, "onMouseEvent");
|
||||||
event.addMultiMouseDownListener(editor.renderer.scrollBarH.inner, [300, 300, 250], this, "onMouseEvent");
|
event.addMultiMouseDownListener(editor.renderer.scrollBarH.inner, [300, 300, 250], this, "onMouseEvent");
|
||||||
|
|
|
@ -411,7 +411,7 @@ var VirtualRenderer = function(container, cellWidth, cellHeight) {
|
||||||
sm.v = sm.top + sm.bottom;
|
sm.v = sm.top + sm.bottom;
|
||||||
sm.h = sm.left + sm.right;
|
sm.h = sm.left + sm.right;
|
||||||
if (sm.top && this.scrollTop <= 0 && this.provider)
|
if (sm.top && this.scrollTop <= 0 && this.provider)
|
||||||
this.provider.setScrollTop(sm.top);
|
this.provider.setScrollTop(-sm.top);
|
||||||
this.updateFull();
|
this.updateFull();
|
||||||
};
|
};
|
||||||
this.$updateScrollBarV = function() {
|
this.$updateScrollBarV = function() {
|
||||||
|
@ -708,6 +708,8 @@ var VirtualRenderer = function(container, cellWidth, cellHeight) {
|
||||||
if (this.scrollTop > top) {
|
if (this.scrollTop > top) {
|
||||||
if (offset)
|
if (offset)
|
||||||
top -= offset * this.$size.scrollerHeight;
|
top -= offset * this.$size.scrollerHeight;
|
||||||
|
if (top === 0)
|
||||||
|
top = -this.scrollMargin.top;
|
||||||
this.provider.setScrollTop(top);
|
this.provider.setScrollTop(top);
|
||||||
} else if (this.scrollTop + this.$size.scrollerHeight < top + height) {
|
} else if (this.scrollTop + this.$size.scrollerHeight < top + height) {
|
||||||
if (offset)
|
if (offset)
|
||||||
|
@ -918,9 +920,10 @@ var VirtualRenderer = function(container, cellWidth, cellHeight) {
|
||||||
* @returns {Boolean}
|
* @returns {Boolean}
|
||||||
**/
|
**/
|
||||||
this.isScrollableBy = function(deltaX, deltaY) {
|
this.isScrollableBy = function(deltaX, deltaY) {
|
||||||
if (deltaY < 0 && this.getScrollTop() >= 1)
|
if (deltaY < 0 && this.getScrollTop() >= 1 - this.scrollMargin.top)
|
||||||
return true;
|
return true;
|
||||||
if (deltaY > 0 && this.getScrollTop() + this.$size.scrollerHeight - this.layerConfig.maxHeight < -1)
|
if (deltaY > 0 && this.getScrollTop() + this.$size.scrollerHeight - this.layerConfig.maxHeight
|
||||||
|
< -1 + this.scrollMargin.bottom)
|
||||||
return true;
|
return true;
|
||||||
if (deltaX < 0 && this.getScrollLeft() >= 1)
|
if (deltaX < 0 && this.getScrollLeft() >= 1)
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -1972,6 +1972,7 @@ module.exports = function setup(fsOptions) {
|
||||||
pty.kill = function() {};
|
pty.kill = function() {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.killtree =
|
||||||
this.kill = isOutput ? function(signal){
|
this.kill = isOutput ? function(signal){
|
||||||
// We dont want to really kill, just stop the process
|
// We dont want to really kill, just stop the process
|
||||||
if (signal == -1) {
|
if (signal == -1) {
|
||||||
|
@ -2198,6 +2199,8 @@ module.exports = function setup(fsOptions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function execFile(executablePath, options, callback) {
|
function execFile(executablePath, options, callback) {
|
||||||
|
if (isWin && execFileWin(executablePath, options, callback))
|
||||||
|
return;
|
||||||
if (options.hasOwnProperty('env')) {
|
if (options.hasOwnProperty('env')) {
|
||||||
options.env.__proto__ = fsOptions.defaultEnv;
|
options.env.__proto__ = fsOptions.defaultEnv;
|
||||||
} else {
|
} else {
|
||||||
|
@ -2230,6 +2233,22 @@ module.exports = function setup(fsOptions) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function execFileWin(executablePath, options, callback) {
|
||||||
|
if (executablePath == "kill") {
|
||||||
|
var pid = options.args && options.args[0];
|
||||||
|
console.error(pid, sessions)
|
||||||
|
Object.keys(sessions).some(function(key) {
|
||||||
|
if (sessions[key].pid == pid && sessions[key].pty) {
|
||||||
|
console.error(sessions[key].pty.pid)
|
||||||
|
sessions[key].pty.killtree(-1);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
callback();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function killtree(pid, options, callback) {
|
function killtree(pid, options, callback) {
|
||||||
var code = options.code || "SIGKILL";
|
var code = options.code || "SIGKILL";
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
},
|
},
|
||||||
"licenses": [],
|
"licenses": [],
|
||||||
"c9plugins": {
|
"c9plugins": {
|
||||||
"c9.ide.language": "#a6b859c38e",
|
"c9.ide.language": "#34de5e56ae",
|
||||||
"c9.ide.language.css": "#afda1f867c",
|
"c9.ide.language.css": "#afda1f867c",
|
||||||
"c9.ide.language.generic": "#87a4a44671",
|
"c9.ide.language.generic": "#87a4a44671",
|
||||||
"c9.ide.language.html": "#fa4833e117",
|
"c9.ide.language.html": "#fa4833e117",
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
"c9.ide.find": "#989c06e6a7",
|
"c9.ide.find": "#989c06e6a7",
|
||||||
"c9.ide.find.infiles": "#f98dfef554",
|
"c9.ide.find.infiles": "#f98dfef554",
|
||||||
"c9.ide.find.replace": "#e4daf722b8",
|
"c9.ide.find.replace": "#e4daf722b8",
|
||||||
"c9.ide.run.debug": "#df6615768a",
|
"c9.ide.run.debug": "#a3e0f7b134",
|
||||||
"c9.ide.ace.emmet": "#e5f1a92ac3",
|
"c9.ide.ace.emmet": "#e5f1a92ac3",
|
||||||
"c9.ide.ace.gotoline": "#4d1a93172c",
|
"c9.ide.ace.gotoline": "#4d1a93172c",
|
||||||
"c9.ide.ace.keymaps": "#6c4bb65b1f",
|
"c9.ide.ace.keymaps": "#6c4bb65b1f",
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
"c9.ide.readonly": "#f6f07bbe42",
|
"c9.ide.readonly": "#f6f07bbe42",
|
||||||
"c9.ide.recentfiles": "#7c099abf40",
|
"c9.ide.recentfiles": "#7c099abf40",
|
||||||
"c9.ide.remote": "#37773d905b",
|
"c9.ide.remote": "#37773d905b",
|
||||||
"c9.ide.run": "#431e263eac",
|
"c9.ide.run": "#f5a056e6ce",
|
||||||
"c9.ide.run.build": "#6726030127",
|
"c9.ide.run.build": "#6726030127",
|
||||||
"c9.ide.save": "#a32a8f4346",
|
"c9.ide.save": "#a32a8f4346",
|
||||||
"c9.ide.terminal.monitor": "#df9936daa2",
|
"c9.ide.terminal.monitor": "#df9936daa2",
|
||||||
|
|
|
@ -270,7 +270,7 @@ define(function(require, exports, module) {
|
||||||
var reHome = new RegExp("^" + plugin.escapeRegExp(c9.home || "/home/ubuntu"));
|
var reHome = new RegExp("^" + plugin.escapeRegExp(c9.home || "/home/ubuntu"));
|
||||||
plugin.normalizePath = function(path){
|
plugin.normalizePath = function(path){
|
||||||
if (!path || path.charAt(0) == "~") return path;
|
if (!path || path.charAt(0) == "~") return path;
|
||||||
return ("/" + path.replace(/^[\/]+/, "")).replace(reHome, "~");
|
return (path.replace(/^[\/]+/, "/")).replace(reHome, "~");
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
.has_apf .list_dark{
|
.has_apf .list_dark{
|
||||||
display : block;
|
display : block;
|
||||||
}
|
}
|
||||||
.list_dark .menu_item:hover{
|
.list_dark .menu_item:hover,
|
||||||
background-color : #262626;
|
.list_dark .tree-row:hover,
|
||||||
color : #a0b42a;
|
.list_dark .tree-row.hover {
|
||||||
|
background-color : @menu-item-hover-background;
|
||||||
|
color : @menu-item-hover-color;
|
||||||
|
}
|
||||||
|
.list_dark .tree-row .caption {
|
||||||
|
display: inline-block;
|
||||||
|
padding: @datagrid-row-padding;
|
||||||
}
|
}
|
|
@ -938,7 +938,7 @@ apf.menu = function(struct, tagName){
|
||||||
// workaround for a chrome bug where clicking on shadow clciks on contents of overflown element
|
// workaround for a chrome bug where clicking on shadow clciks on contents of overflown element
|
||||||
this.$ext.addEventListener("mouseup", function(e) {
|
this.$ext.addEventListener("mouseup", function(e) {
|
||||||
var rect = this.getBoundingClientRect();
|
var rect = this.getBoundingClientRect();
|
||||||
if (e.clientY > rect.bottom) {
|
if (e.clientY > rect.bottom && rect.height) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue