Class DiscardSessionParams
Request for rdcore/session/discard: a client asks the language server to take a module it supplied out of the platform's runtime
session.
[Method("rdcore/session/discard", Direction.ClientToServer)]
public record DiscardSessionParams : IRequest, IRequest<Unit>, IRequest<DiscardSessionResult>, IBaseRequest, IEquatable<DiscardSessionParams>
- Inheritance
-
DiscardSessionParams
- Implements
-
IRequestIRequest<Unit>IRequest<DiscardSessionResult>IBaseRequest
- 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. See EndProgram.
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; }