File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
vsintegration/src/FSharp.Editor/LanguageService Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3325,3 +3325,5 @@ module PrettyNaming =
33253325 let QuoteIdentifierIfNeeded id = Lexhelp.Keywords.QuoteIdentifierIfNeeded id
33263326 let KeywordNames = Lexhelp.Keywords.keywordNames
33273327
3328+ module FSharpFileUtilities =
3329+ let isScriptFile ( fileName : string ) = CompileOps.IsScript fileName
Original file line number Diff line number Diff line change @@ -761,3 +761,6 @@ module public PrettyNaming =
761761 /// All the keywords in the F# language
762762 val KeywordNames : string list
763763
764+ /// A set of helpers for dealing with F# files.
765+ module FSharpFileUtilities =
766+ val isScriptFile : string -> bool
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ open System.ComponentModel.Composition
1010open System.IO
1111open System.Linq
1212open Microsoft.CodeAnalysis
13- open FSharp.Compiler .CompileOps
1413open FSharp.Compiler .SourceCodeServices
1514open Microsoft.VisualStudio
1615open Microsoft.VisualStudio .FSharp .Editor
@@ -359,7 +358,7 @@ type internal FSharpProjectOptionsManager
359358 let parsingOptions =
360359 match reactor.TryGetCachedOptionsByProjectId( document.Project.Id) with
361360 | Some (_, parsingOptions, _) -> parsingOptions
362- | _ -> { FSharpParsingOptions.Default with IsInteractive = IsScript document.Name }
361+ | _ -> { FSharpParsingOptions.Default with IsInteractive = FSharpFileUtilities.isScriptFile document.Name }
363362 CompilerEnvironment.GetCompilationDefinesForEditing parsingOptions
364363
365364 member this.TryGetOptionsByProject ( project ) =
You can’t perform that action at this time.
0 commit comments