Stop previous refactoring when a new one begins [#58]
This commit is contained in:
parent
d103dc0574
commit
a0fd4378a4
|
@ -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
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue