Workspace load duplicates package file source code

Loading workspace that contains package files with file splitting tags will silently generate duplicate source code. To trigger the condition Toad settings need to have file splitting tags
enabled, open one connection and one package file test1.sql with contents:

/*<TOAD_FILE_CHUNK>*/
create or replace package TEST1 is end TEST1;
/

/*<TOAD_FILE_CHUNK>*/
create or replace package body TEST1 is end TEST1;
/

(it will open as two tabs). Then save this as new workspace. Close everything and open the workspace and now it opens a connection with the test1.sql in two tabs as expected but both have duplicated code. If now editing and saving the file the contens will be:

/*<TOAD_FILE_CHUNK>*/
create or replace package TEST1 is end TEST1;
/

/*<TOAD_FILE_CHUNK>*/
create or replace package body TEST1 is end TEST1;
/

/*<TOAD_FILE_CHUNK>*/
create or replace package TEST1 is end TEST1;
/

/*<TOAD_FILE_CHUNK>*/
create or replace package body TEST1 is end TEST1;
/

My settings:

image

This bug is still relevant as cannot use Workspace functionality especially if having any plsql files open, what is almost always the need. Or have to always remember to close and open all plsql tabs manually so to not lose work by editing wrong dupliate procedures, overwriting wrong procedures on compile, etc hidden problems that arise from that.

Sorry I missed this 2 years ago when you first posted it.

I have logged this in our bug tracking system so I don't forget it again. I should be able to get to it next week.

Latest beta fix works, thanks.

You're welcome. Sorry it took so long.