Setting Script.Source from plugin should NOT reset the editor window

When a plugin sets the .Source property of a script, it resets that script’s editor window as if the user opened a new script Instance. Scrolls to the top and puts the cursor at the very start.

This behavior makes it impossible to create any plugins that meaningfully modify scripts to help the user write code faster (ex: snippets plugin).

Please change this! Due to this janky behavior, there are entire categories of plugins that simply are unusable.


Additionally, please give plugins more control over the cursor in general:

43 Likes

This is a huge headache to all users who use tools such as Rojo to externally manage their code.

Updating the current behavior will massively improve many developers workflows.

11 Likes

Since the main use case here is about extending the Script Editor w/ plugins, we would like to support this through a first-class API instead of overloading .Source behavior. We are working on this now! Please reach out to @Clasifex if you’d like to discuss specific use cases.

14 Likes