Skip to content

Support #exit;; as alias to #quit;; in fsi#19329

Merged
T-Gro merged 5 commits intodotnet:mainfrom
bbatsov:support-exit-directive-in-fsi
Feb 27, 2026
Merged

Support #exit;; as alias to #quit;; in fsi#19329
T-Gro merged 5 commits intodotnet:mainfrom
bbatsov:support-exit-directive-in-fsi

Conversation

@bbatsov
Copy link
Contributor

@bbatsov bbatsov commented Feb 19, 2026

Users often type #exit;; out of habit from shells and .NET's exit(). This adds #exit as an alias alongside #q and #quit, and includes it in the #help output.

Fixes #18820

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/10.0.300.md

@bbatsov
Copy link
Contributor Author

bbatsov commented Feb 19, 2026

I have to say I was amused to see that the comment for quit was // Exit. :-) Anyways, I'm reasonably sure I got this one right, but as always I'm looking forward to your feedback!

@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Feb 19, 2026
@T-Gro
Copy link
Member

T-Gro commented Feb 19, 2026

I appreciate this addition - I frequently had to stop and remember how quit is spelled, exit is way easier 👍 .
There is DependencyManagerInteractiveTests also verifying help output - you can also decide to change that test's assertion to stop firing in any fsi help extension (since the test is about dependency manager).

@bbatsov
Copy link
Contributor Author

bbatsov commented Feb 19, 2026

Will do!

@bbatsov bbatsov force-pushed the support-exit-directive-in-fsi branch from 2e4a647 to 7b141ce Compare February 19, 2026 22:34
@T-Gro T-Gro enabled auto-merge (squash) February 25, 2026 09:31
Only assert the dependency manager-specific lines (#r "nuget:..." and
#i) are present in help output, rather than matching the entire
directive listing verbatim. This way the test won't break whenever a
new FSI directive is added.
auto-merge was automatically disabled February 25, 2026 12:43

Head branch was pushed to by a user without write access

@T-Gro T-Gro enabled auto-merge (squash) February 27, 2026 14:34
@T-Gro T-Gro merged commit be61f28 into dotnet:main Feb 27, 2026
45 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

In fsi, support #exit;; as an alias to #quit;;

2 participants