Skip to content

Consider managing FSI sessions in FSAC directly #1720

Open
@baronfel

Description

@baronfel

Managing sessions directly in FSAC would allow for more full featured treatments for features like the watcher, as well as serving as the foundation for notebook approaches.

There would be some book-keeping around identifying which evaluation session a particular interaction command would be associated with, so we'd want to spec out a small set of custom LSP endpoints specifically for dealing with this, but it would be possible to do something like:

  • User sends line/selection/file to FSI session via custom LSP endpoint
  • FSAC identifies the session by some kind of ID and performs the evaluation of the provided line/selection/file
  • FSAC sends any output of the evaluation to VSCode for display
  • FSAC extracts the session state after the evaluation using the session.GetBoundValues() API and returns that data to VSCode for display in a watcher (if open)

Originally posted by @baronfel in #1716 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAccepted suggestions that makes existing features betterscriptsProblems with .fsx files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions