Class SessionDiscardParams
Request for rdcore/session/discard: a client asks the language server to take a module it supplied out of the platform's runtime
session.
public record SessionDiscardParams : IEquatable<SessionDiscardParams>
- Inheritance
-
SessionDiscardParams
- Implements
- Derived
- Inherited Members
Remarks
Running a module defines it in the session, and defining it again replaces what it declares - it never removes what it no longer does. The
variables a program made therefore outlive the program, and the storage with them. A client that clears its program asks for the module to
go, and the next run defines it afresh: NEW and LOAD of a shell, and RUN, which in BASIC clears the variables.
The module symbol itself stays: it is the project's, not the code's.
Properties
EndProgram
Whether the program that is running or waits is ended, and the session wiped, before the module goes: what a client that clears its program
(NEW, LOAD) asks. Without it a module of a program that is running or waits is kept, since the code it runs is not the document's to
take away.
public bool EndProgram { get; init; }
Property Value
ModuleName
The programmatic name of the module, as it was named when it was run.
public string ModuleName { get; init; }