improved inspectability of local variables

upd4.1
Jens Mönig 2017-01-20 07:54:17 +01:00
rodzic 54decac720
commit e9cc801207
2 zmienionych plików z 15 dodań i 1 usunięć

Wyświetl plik

@ -150,7 +150,7 @@ CustomCommandBlockMorph*/
// Global stuff //////////////////////////////////////////////////////// // Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2017-January-19'; modules.blocks = '2017-January-20';
var SyntaxElementMorph; var SyntaxElementMorph;
var BlockMorph; var BlockMorph;
@ -2539,6 +2539,16 @@ BlockMorph.prototype.userMenu = function () {
); );
}); });
} }
proc.homeContext.variables.names().forEach(function (vn) {
if (!contains(vNames, vn)) {
menu.addItem(
vn + '...',
function () {
proc.doShowVar(vn);
}
);
}
});
return menu; return menu;
} }
if (this.parent.parentThatIsA(RingMorph)) { if (this.parent.parentThatIsA(RingMorph)) {

Wyświetl plik

@ -3314,3 +3314,7 @@ Fixes:
* German translation update * German translation update
* Blocks: changed keyboard shortcut indicator for “find blocks” to “^” * Blocks: changed keyboard shortcut indicator for “find blocks” to “^”
* GUI: fixed #1631 * GUI: fixed #1631
170120
------
* Blocks: improved inspectability of local variables