@@ -206,32 +206,32 @@ type FSharpOptionsPage(lifetime: Lifetime, optionsPageContext, settings,
206
206
207
207
do
208
208
this.AddHeader( " Imports" )
209
- this.AddBoolOption(( fun key -> key .TopLevelOpenCompletion) , RichText( topLevelOpenCompletion), null ) |> ignore
209
+ this.AddBoolOption(_ . TopLevelOpenCompletion, RichText( topLevelOpenCompletion), null ) |> ignore
210
210
211
211
this.AddHeader( " Script editing" )
212
- this.AddComboEnum(( fun key -> key .LanguageVersion) , FSharpScriptOptions.languageVersion, FSharpLanguageVersion.toString) |> ignore
212
+ this.AddComboEnum(_ . LanguageVersion, FSharpScriptOptions.languageVersion, FSharpLanguageVersion.toString) |> ignore
213
213
if PlatformUtil.IsRunningUnderWindows then
214
- this.AddBoolOption(( fun key -> key .TargetNetFramework) , RichText( FSharpScriptOptions.targetNetFramework)) |> ignore
215
- this.AddBoolOptionWithComment(( fun key -> key .FsiInteractiveEditor) , FSharpExperimentalFeatures.fsiInteractiveEditor, " Experimental" ) |> ignore
214
+ this.AddBoolOption(_ . TargetNetFramework, RichText( FSharpScriptOptions.targetNetFramework)) |> ignore
215
+ this.AddBoolOptionWithComment(_ . FsiInteractiveEditor, FSharpExperimentalFeatures.fsiInteractiveEditor, " Experimental" ) |> ignore
216
216
217
217
this.AddHeader( " F# Compiler Service" )
218
- this.AddBoolOptionWithComment(( fun key -> key .SkipImplementationAnalysis) , skipImplementationAnalysis, " Requires restart" ) |> ignore
219
- this.AddBoolOptionWithComment(( fun key -> key .ParallelProjectReferencesAnalysis) , parallelProjectReferencesAnalysis, " Requires restart" ) |> ignore
220
- this.AddBoolOptionWithComment(( fun key -> key .OutOfProcessTypeProviders) , FSharpExperimentalFeatures.outOfProcessTypeProviders, " Requires restart" ) |> ignore
218
+ this.AddBoolOptionWithComment(_ . SkipImplementationAnalysis, skipImplementationAnalysis, " Requires restart" ) |> ignore
219
+ this.AddBoolOptionWithComment(_ . ParallelProjectReferencesAnalysis, parallelProjectReferencesAnalysis, " Requires restart" ) |> ignore
220
+ this.AddBoolOptionWithComment(_ . OutOfProcessTypeProviders, FSharpExperimentalFeatures.outOfProcessTypeProviders, " Requires restart" ) |> ignore
221
221
222
222
do
223
223
use indent = this.Indent()
224
- [ this.AddBoolOptionWithComment(( fun key -> key .GenerativeTypeProvidersInMemoryAnalysis) , FSharpExperimentalFeatures.generativeTypeProvidersInMemoryAnalysis, " Requires restart" ) ]
224
+ [ this.AddBoolOptionWithComment(_ . GenerativeTypeProvidersInMemoryAnalysis, FSharpExperimentalFeatures.generativeTypeProvidersInMemoryAnalysis, " Requires restart" ) ]
225
225
|> Seq.iter ( fun checkbox ->
226
- this.AddBinding( checkbox, BindingStyle.IsEnabledProperty, ( fun key -> key .OutOfProcessTypeProviders) , fun t -> t :> obj))
226
+ this.AddBinding( checkbox, BindingStyle.IsEnabledProperty, _ . OutOfProcessTypeProviders, fun t -> t :> obj))
227
227
228
- this.AddBoolOptionWithComment(( fun key -> key .NonFSharpProjectInMemoryReferences) , nonFSharpProjectInMemoryReferences, " Requires restart" ) |> ignore
228
+ this.AddBoolOptionWithComment(_ . NonFSharpProjectInMemoryReferences, nonFSharpProjectInMemoryReferences, " Requires restart" ) |> ignore
229
229
230
230
if configurations.IsInternalMode() then
231
231
this.AddHeader( " Experimental features" )
232
- this.AddBoolOption(( fun key -> key .PostfixTemplates) , RichText( FSharpExperimentalFeatures.postfixTemplates), null ) |> ignore
233
- this.AddBoolOption(( fun key -> key .RedundantParensAnalysis) , RichText( FSharpExperimentalFeatures.redundantParenAnalysis), null ) |> ignore
234
- this.AddBoolOption(( fun key -> key .Formatter) , RichText( FSharpExperimentalFeatures.formatter), null ) |> ignore
232
+ this.AddBoolOption(_ . PostfixTemplates, RichText( FSharpExperimentalFeatures.postfixTemplates), null ) |> ignore
233
+ this.AddBoolOption(_ . RedundantParensAnalysis, RichText( FSharpExperimentalFeatures.redundantParenAnalysis), null ) |> ignore
234
+ this.AddBoolOption(_ . Formatter, RichText( FSharpExperimentalFeatures.formatter), null ) |> ignore
235
235
236
236
237
237
[<ShellComponent>]
0 commit comments