Read a module from the editor
xlide_live_read_moduleRead a VBA module's live source from the running editor, including unsaved edits, to see what the user is actually working on.
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. start_line and end_line read a slice of long live source; content_token describes the whole live module.
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. | |
| end_line | No | Last source line. 0 means the end. | |
| start_line | No | First source line. 0 means the start. | |
| 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 | |||