Currently, using ScriptEditorService.TextDocumentDidClose
in a Plugin is unfortunately not possible when Workspace has SignalBehavior.Deferred
selected. When this property is set in this way, the document will enter its “Closed” state before the event function is called, making it impossible to extract any meaningful data from the document.
Expected behavior
I expect the ScriptDocument to remain open for at least a small frame of time, while I still have the option to operate on the document as needed; regardless of the selected SignalBehavior
Enum.