Skip to content

Conversation

@KevinRansom
Copy link
Contributor

This happens because fsi, displays prompts, even when executing code sent from vsfsi. When code is sent to fsi for execution VSFSI, adds additional code in the form of directives, and extra ";;" in order to get FSI to display errors with file and line numbers matching the .fsx file being edited.

Because of the way the repl loop works in fsi, it was not possible to figure out how to eliminate prompt display based on whether we are interactive or executing snippets. Instead, I added a new directive to control the prompt:
#interactiveprompt "show" | "hide" | "skip"

"show" enables the prompt to be displayed when fsi needs it to.
"hide" ensures that the prompt will not show.
"skip" hides the prompt for the next time vs wants to show it.

Then I added:
#interactiveprompt "hide"
and
#interactiveprompt "show"

into the additional directives that are sent to the fsi process.

Todo:
Add some tests for
#interactiveprompt "show" | "hide" | "skip"

@KevinRansom KevinRansom requested a review from a team as a code owner November 23, 2022 20:02
T-Gro
T-Gro previously approved these changes Nov 23, 2022
abonie
abonie previously approved these changes Nov 25, 2022
@KevinRansom KevinRansom dismissed stale reviews from abonie and T-Gro via 5acccd8 November 27, 2022 02:20
abonie
abonie previously approved these changes Nov 28, 2022
T-Gro
T-Gro previously approved these changes Nov 28, 2022
0101
0101 previously approved these changes Nov 30, 2022
@vzarytovskii vzarytovskii dismissed stale reviews from 0101, T-Gro, and abonie via f293204 November 30, 2022 14:11
@vzarytovskii vzarytovskii enabled auto-merge (squash) November 30, 2022 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants