Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing jvm-update-handler inconsistencies

  • Loading branch information...
commit 3245a974099949acdca09c8628706722ce47106e 1 parent 153e758
@mostafaeweda mostafaeweda authored
View
2  plugins-client/ext.language/base_handler.js
@@ -147,7 +147,7 @@ module.exports = {
* and staticPrefix, the current loading URL
* @param currentNode the AST node the cursor is currently at (if exists)
*/
- complete: function(doc, fullAst, cursorPos, currentNode, callback) {
+ complete: function(doc, fullAst, data, currentNode, callback) {
callback();
},
View
8 plugins-client/ext.language/refactor.js
@@ -158,22 +158,22 @@ module.exports = {
this.worker.emit("fetchVariablePositions", {data: curPos});
},
- finishRefactoring: function() {
+ commitRename: function() {
// Finished refactoring in editor
// -> continue with the worker giving the initial refactor cursor position
var doc = editors.currentEditor.amlEditor.getDocument();
var oPos = this.placeHolder.pos;
var line = doc.getLine(oPos.row);
var newIdentifier = retrieveFullIdentifier(line, oPos.column);
- this.worker.emit("finishRefactoring", {data: { oldId: this.oldIdentifier, newName: newIdentifier.text } });
+ this.worker.emit("commitRename", {data: { oldId: this.oldIdentifier, newName: newIdentifier.text } });
},
- cancelRefactoring: function() {
+ onRenameCancel: function() {
if (this.placeHolder) {
this.placeHolder.detach();
this.placeHolder.cancel();
}
- this.worker.emit("cancelRefactoring", {data: {}});
+ this.worker.emit("onRenameCancel", {data: {}});
},
$cleanup: function() {
Please sign in to comment.
Something went wrong with that request. Please try again.