@@ -23,9 +23,6 @@ open Util
2323open System.ComponentModel
2424open Microsoft.VisualStudio .FSharp .Interactive .Session
2525
26- module SP = Microsoft.VisualStudio.FSharp.Interactive.Session.SessionsProperties
27-
28-
2926module internal ContentType =
3027[<Export>]
3128[<Name( Guids.fsiContentTypeName) >]
@@ -43,22 +40,22 @@ type FsiPropertyPage() =
4340[<SRProperties.Category( SRProperties.FSharpInteractiveMisc) >]
4441[<SRProperties.DisplayName( SRProperties.FSharpInteractive64Bit) >]
4542[<SRProperties.Description( SRProperties.FSharpInteractive64BitDescr) >]
46- member this.FsiPreferAnyCPUVersion with get() = SP .useAnyCpuVersionand set ( x : bool ) = SP .useAnyCpuVersion<- x
43+ member this.FsiPreferAnyCPUVersion with get() = SessionsProperties .useAnyCpuVersionand set ( x : bool ) = SessionsProperties .useAnyCpuVersion<- x
4744
4845[<SRProperties.Category( SRProperties.FSharpInteractiveMisc) >]
4946[<SRProperties.DisplayName( SRProperties.FSharpInteractiveOptions) >]
5047[<SRProperties.Description( SRProperties.FSharpInteractiveOptionsDescr) >]
51- member this.FsiCommandLineArgs with get() = SP .fsiArgsand set ( x : string ) = SP .fsiArgs<- x
48+ member this.FsiCommandLineArgs with get() = SessionsProperties .fsiArgsand set ( x : string ) = SessionsProperties .fsiArgs<- x
5249
5350[<SRProperties.Category( SRProperties.FSharpInteractiveMisc) >]
5451[<SRProperties.DisplayName( SRProperties.FSharpInteractiveShadowCopy) >]
5552[<SRProperties.Description( SRProperties.FSharpInteractiveShadowCopyDescr) >]
56- member this.FsiShadowCopy with get() = SP .fsiShadowCopyand set ( x : bool ) = SP .fsiShadowCopy<- x
53+ member this.FsiShadowCopy with get() = SessionsProperties .fsiShadowCopyand set ( x : bool ) = SessionsProperties .fsiShadowCopy<- x
5754
5855[<SRProperties.Category( SRProperties.FSharpInteractiveDebugging) >]
5956[<SRProperties.DisplayName( SRProperties.FSharpInteractiveDebugMode) >]
6057[<SRProperties.Description( SRProperties.FSharpInteractiveDebugModeDescr) >]
61- member this.FsiDebugMode with get() = SP .fsiDebugModeand set ( x : bool ) = SP .fsiDebugMode<- x
58+ member this.FsiDebugMode with get() = SessionsProperties .fsiDebugModeand set ( x : bool ) = SessionsProperties .fsiDebugMode<- x
6259
6360// CompletionSet
6461type internal FsiCompletionSet ( imageList , source : Source ) =
@@ -109,7 +106,7 @@ type internal FsiScanner(buffer:IVsTextLines) =
109106override this.ScanTokenAndProvideInfoAboutIt ( tokenInfo : TokenInfo , state : byref < int >) = false
110107// Implementing a scanner with TokenTriggers could start intellisense calls, e.g. on DOT.
111108
112- type internal FsiAuthoringScope ( sessions : Microsoft.VisualStudio.FSharp.Interactive.Session.Sessions option, readOnlySpanGetter : unit -> TextSpan ) =
109+ type internal FsiAuthoringScope ( sessions : FsiSessions option, readOnlySpanGetter : unit -> TextSpan ) =
113110inherit AuthoringScope()
114111override this.GetDataTipText ( line : int , col : int , span : byref < TextSpan >) =
115112 span<- new TextSpan()
@@ -131,7 +128,7 @@ type internal FsiAuthoringScope(sessions:Microsoft.VisualStudio.FSharp.Interacti
131128// Multiline input is available to a limited degree (and could be improved).
132129let span = readOnlySpanGetter()
133130let str = lines.GetLineText( span.iEndLine, span.iEndIndex, line, col) |> throwOnFailure1
134- let declInfos = getDeclarationInfos ( sessions: Sessions ) ( str: string)
131+ let declInfos = sessions.GetDeclarationInfos ( str: string)
135132new FsiDeclarations( declInfos) :> Declarations
136133else
137134#endif
@@ -201,7 +198,7 @@ type internal FsiLanguageService() =
201198do assert ( " 35A5E6B8-4012-41fc-A652-2CDC56D74E9F" = Guids.guidFsiLanguageService)
202199let mutable preferences = null : LanguagePreferences
203200let mutable scanner = null : IScanner
204- let mutable sessions = None: Session.Sessions option
201+ let mutable sessions = None: Session.FsiSessions option
205202let mutable readOnlySpanGetter = ( fun () -> new TextSpan())
206203
207204let readOnlySpan () = readOnlySpanGetter() // do not eta-contract, readOnlySpanGetter is mutable.