[BUG] New script package created are not immediatly available in designer

Ignition 8.1.32 and before
Ticket #92629

@PGriffith
New script package created are not immediatly available in designer.
For example when created and then used in a script transform or in the designer Script console.

Traceback (most recent call last):
  File "<input>", line 1, in <module>
ImportError: Error loading module test: SyntaxError: mismatched input '\n' expecting COLON (<module:perspective.test>, line 1)

Workaround, the package is "available" after restarting the designer

I just pulled 8.1.32 to try and it works fine for me.
Didn't have the issue either with previous versions (8.1.28 and 8.1.31)

it seems not to be always repeatable...

Hmm. Perspective recently got some changes to how it loads yet-unsaved changes from the designer, but that was fixing a bug where things wouldn't load. If you can replicate reliably, it'd be helpful.