Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/release-notes/.FSharp.Compiler.Service/10.0.300.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### Added

* Support `#exit;;` as alias to `#quit;;` in F# Interactive. ([PR #19329](https://github.com/dotnet/fsharp/pull/19329))

### Changed

### Breaking Changes
3 changes: 2 additions & 1 deletion src/Compiler/Interactive/fsi.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ type internal FsiCommandLineOptions(fsi: FsiEvaluationSessionHostConfig, argv: s

fsiConsoleOutput.uprintfn """ #clear;; // %s""" (FSIstrings.SR.fsiIntroTextHashclearInfo ())
fsiConsoleOutput.uprintfn """ #quit;; // %s""" (FSIstrings.SR.fsiIntroTextHashquitInfo ())
fsiConsoleOutput.uprintfn """ #exit;; // %s""" (FSIstrings.SR.fsiIntroTextHashquitInfo ())
fsiConsoleOutput.uprintfn ""
fsiConsoleOutput.uprintfnn "%s" (FSIstrings.SR.fsiIntroTextHeader2commandLine ())
fsiConsoleOutput.uprintfn "%s" (FSIstrings.SR.fsiIntroTextHeader3 helpLine)
Expand Down Expand Up @@ -3885,7 +3886,7 @@ type FsiInteractionProcessor
fsiOptions.ClearScreen()
istate, Completed None

| ParsedHashDirective(("q" | "quit"), [], _) -> fsiInterruptController.Exit()
| ParsedHashDirective(("q" | "quit" | "exit"), [], _) -> fsiInterruptController.Exit()

| ParsedHashDirective("help", hashArguments, m) ->
let args = (parsedHashDirectiveArguments hashArguments tcConfigB.langVersion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ x |> Seq.iter(fun r ->
#r "nuget:FSharp.Data";; // Load Nuget Package 'FSharp.Data' with the highest version
#clear;; // Clear screen
#quit;; // Exit
#exit;; // Exit

F# Interactive command line options:"""

Expand Down Expand Up @@ -766,6 +767,7 @@ x |> Seq.iter(fun r ->
#r "nuget:FSharp.Data";; // Load Nuget Package 'FSharp.Data' with the highest version
#clear;; // Clear screen
#quit;; // Exit
#exit;; // Exit

F# Interactive command line options:"""

Expand Down
1 change: 1 addition & 0 deletions tests/fsharp/core/printing/output.1000.stdout.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,7 @@ type 'a T4063 = | AT4063 of 'a
#r "nuget:FSharp.Data";; // Load Nuget Package 'FSharp.Data' with the highest version
#clear;; // Clear screen
#quit;; // Exit
#exit;; // Exit

F# Interactive command line options:

Expand Down
1 change: 1 addition & 0 deletions tests/fsharp/core/printing/output.200.stdout.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ type 'a T4063 = | AT4063 of 'a
#r "nuget:FSharp.Data";; // Load Nuget Package 'FSharp.Data' with the highest version
#clear;; // Clear screen
#quit;; // Exit
#exit;; // Exit

F# Interactive command line options:

Expand Down
1 change: 1 addition & 0 deletions tests/fsharp/core/printing/output.47.stdout.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -4063,6 +4063,7 @@ type 'a T4063 = | AT4063 of 'a
#help "idn";; // Display documentation for an identifier, e.g. #help "List.map";;
#clear;; // Clear screen
#quit;; // Exit
#exit;; // Exit

F# Interactive command line options:

Expand Down
1 change: 1 addition & 0 deletions tests/fsharp/core/printing/output.multiemit.stdout.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -4065,6 +4065,7 @@ type 'a T4063 = | AT4063 of 'a
#r "nuget:FSharp.Data";; // Load Nuget Package 'FSharp.Data' with the highest version
#clear;; // Clear screen
#quit;; // Exit
#exit;; // Exit

F# Interactive command line options:

Expand Down
1 change: 1 addition & 0 deletions tests/fsharp/core/printing/output.off.stdout.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ type 'a T4063 = | AT4063 of 'a
#r "nuget:FSharp.Data";; // Load Nuget Package 'FSharp.Data' with the highest version
#clear;; // Clear screen
#quit;; // Exit
#exit;; // Exit

F# Interactive command line options:

Expand Down
1 change: 1 addition & 0 deletions tests/fsharp/core/printing/output.stdout.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -4065,6 +4065,7 @@ type 'a T4063 = | AT4063 of 'a
#r "nuget:FSharp.Data";; // Load Nuget Package 'FSharp.Data' with the highest version
#clear;; // Clear screen
#quit;; // Exit
#exit;; // Exit

F# Interactive command line options:

Expand Down
Loading