Read a module from the editor
xlide_live_read_moduleRead a module's current text as the editor holds it, including unsaved edits, to see exactly what the user is working on instead of the saved file.
Instructions
Reads a module's text as the running editor holds it, including edits the user has not saved. This is the one read that can differ from xlide_read_module, and the difference is exactly the user's unsaved work. Use it to see what they are actually working on; use xlide_read_module for what is in the file. surface_only=true reads the modern editor's own copy instead, which exists only for a module the user has open in a tab.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | Which session, by process id. | |
| project | No | Which project, when two documents are open and both hold a module of this name. | |
| module_name | Yes | Module name as the editor shows it. | |
| surface_only | No | Read the modern editor's own copy, which only exists for an open tab. Off reads the module through the editor, which always answers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||