Skip to content

Code Editor 2: [Rename Identifier] Refactoring function names does not work if there is whitespace after the brackets on the declaration line #1794

@gnysek

Description

@gnysek

Description

When creating scripts, there's a function with same name created inside it.
When renaming script, if it contains function with same name, it's renamed but only if there's no space between round and curly brackets.

So this would get renamed:
function Script1(){
but this won't:
function Script1() {
(space is after ())

Steps To Reproduce

  1. Create script
  2. Add space between () and {
  3. Rename script

You can also try to rename (F2-key) scripts inside example project to see it.

7e94f998-a664-4ecf-b2ea-4e404faa9761

Metadata

Metadata

Assignees

Labels

ide-bugBugs with the GameMaker IDEprojectThis issue has a sample project attached
No fields configured for IDE Bug.

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions