Merge pull request #2427 from apple502j/patch-11

Fix sensing_of when renaming global variables
This commit is contained in:
DD Liu 2020-05-27 15:46:40 -04:00 committed by GitHub
commit 33e73c3c5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,7 +330,7 @@ class Target extends EventEmitter {
blockUpdated = t.blocks.updateSensingOfReference(
oldName,
newName,
this.isStage ? '__stage__' : this.getName()
this.isStage ? '_stage_' : this.getName()
) || blockUpdated;
});
// Request workspace change only if sensing_of blocks were actually updated.