You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/queue.fsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ sequentially and in order.
11
11
12
12
The thread processing these requests can also run a low-priority, interleaved background operation when the
13
13
queue is empty. This can be used to implicitly bring the background check of a project "up-to-date".
14
-
When the operations queue has been empty for 1 second ,
14
+
When the operations queue has been empty for 2 seconds,
15
15
this background work is run in small incremental fragments. This work is cooperatively time-sliced to be approximately <50ms, (see `maxTimeShareMilliseconds` in
16
16
IncrementalBuild.fs). The project to be checked in the background is set implicitly
17
17
by calls to ``CheckFileInProject`` and ``ParseAndCheckFileInProject``.
memberic.ImplicitlyStartBackgroundWorkwith get()= backgroundCompiler.ImplicitlyStartBackgroundWork andset v = backgroundCompiler.ImplicitlyStartBackgroundWork <- v
3198
+
memberic.PauseBeforeBackgroundWorkwith get()= Reactor.Reactor().PauseBeforeBackgroundWork andset v = Reactor.Reactor().PauseBeforeBackgroundWork <- v
Copy file name to clipboardExpand all lines: src/fsharp/vs/service.fsi
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -626,9 +626,12 @@ type FSharpChecker =
626
626
/// For example, dependent references may have been deleted or created.
627
627
member InvalidateConfiguration: options: FSharpProjectOptions -> unit
628
628
629
-
/// Begin background parsing the given project.
629
+
[<Obsolete("This method has been renamed to CheckProjectInBackground")>]
630
630
member StartBackgroundCompile: options: FSharpProjectOptions -> unit
631
631
632
+
/// Set the project to be checked in the background. Overrides any previous call to <c>CheckProjectInBackground</c>
633
+
member CheckProjectInBackground: options: FSharpProjectOptions -> unit
634
+
632
635
/// Stop the background compile.
633
636
[<Obsolete("Explicitly stopping background compilation is not recommended and the functionality to allow this may be rearchitected in future release. If you use this functionality please add an issue on http://github.com/fsharp/FSharp.Compiler.Service describing how you use it and ignore this warning.")>]
634
637
member StopBackgroundCompile : unit -> unit
@@ -676,11 +679,16 @@ type FSharpChecker =
676
679
/// A maximum number of megabytes of allocated memory. If the figure reported by <c>System.GC.GetTotalMemory(false)</c> goes over this limit, the FSharpChecker object will attempt to free memory and reduce cache sizes to a minimum.</param>
677
680
member MaxMemory : int with get, set
678
681
679
-
/// If true, then calls to CheckFileInProject implicitly start a background check of that project, replacing
682
+
/// Get or set a flag which controls if background work is started implicitly.
683
+
///
684
+
/// If true, calls to CheckFileInProject implicitly start a background check of that project, replacing
680
685
/// any other background checks in progress. This is useful in IDE applications with spare CPU cycles as
681
686
/// it prepares the project analysis results for use. The default is 'true'.
682
687
member ImplicitlyStartBackgroundWork: bool with get, set
683
688
689
+
/// Get or set the pause time in milliseconds before background work is started.
690
+
member PauseBeforeBackgroundWork: bool with get, set
691
+
684
692
[<Obsolete("Renamed to BeforeBackgroundFileCheck")>]
0 commit comments