Skip to content

Commit

Permalink
APIs used are new for 14.0, omit them for 12.0 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
latkin committed Jun 10, 2015
1 parent a662e18 commit 92c8919
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,9 @@ type FSharpPackage() as self =
/// We specify our customizations in the General profile for VS, but we have found that in some cases
/// those customizations are incorrectly ignored.
member private this.EstablishDefaultSettingsIfMissing() =
#if VS_VERSION_DEV12
() // ISettingsManager only implemented for VS 14.0+
#else
match this.GetService(typeof<SVsSettingsPersistenceManager>) with
| :? Microsoft.VisualStudio.Settings.ISettingsManager as settingsManager ->
for settingName,defaultValue in fsharpSpecificProfileSettings do
Expand All @@ -2049,6 +2052,7 @@ type FSharpPackage() as self =
settingsManager.SetValueAsync(settingName, defaultValue, false) |> ignore
| _ -> ()
| _ -> ()
#endif

member self.RegisterForIdleTime() =
mgr <- (self.GetService(typeof<SOleComponentManager>) :?> IOleComponentManager)
Expand Down

0 comments on commit 92c8919

Please sign in to comment.