Stop previous refactoring when a new one begins [#58]

This commit is contained in:
David Evans 2020-01-20 21:39:19 +00:00
parent d103dc0574
commit a0fd4378a4
3 changed files with 15 additions and 1 deletions

View File

@ -953,6 +953,13 @@
}
enterParams(start, end, block) {
if(!block.includes('{')) {
return;
}
if(this.cancelParams) {
this.cancelParams();
}
const doc = this.code.getDoc();
const endBookmark = doc.setBookmark(end);
const done = [];

File diff suppressed because one or more lines are too long

View File

@ -112,6 +112,13 @@ export default class CodeEditor extends EventObject {
}
enterParams(start, end, block) {
if(!block.includes('{')) {
return;
}
if(this.cancelParams) {
this.cancelParams();
}
const doc = this.code.getDoc();
const endBookmark = doc.setBookmark(end);
const done = [];