Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel committed Aug 9, 2023
1 parent a00de3f commit e9a1b0d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/FsAutoComplete/CodeFixes/AddMissingXmlDocumentation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let private tryGetExistingXmlDoc (pos: FSharp.Compiler.Text.Position) (xmlDoc: P

if rangeContainsPos xd.Range pos then
let d = xd.ToXmlDoc(false, None)

if Array.isEmpty d.UnprocessedLines then
None
elif d.UnprocessedLines |> Array.exists (fun s -> s.Contains("<summary>")) then
Expand Down
5 changes: 4 additions & 1 deletion src/FsAutoComplete/LspHelpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,13 @@ type FSACConfig =
ParallelReferenceResolution: bool
}

static member Default = { CachedTypeCheckCount = 200L; ParallelReferenceResolution = true }
static member Default =
{ CachedTypeCheckCount = 200L
ParallelReferenceResolution = true }

static member FromDto(dto: FSACDto) =
let defaultConfig = FSACConfig.Default

{ CachedTypeCheckCount = defaultArg dto.CachedTypeCheckCount defaultConfig.CachedTypeCheckCount
ParallelReferenceResolution = defaultArg dto.ParallelReferenceResolution defaultConfig.ParallelReferenceResolution }

Expand Down
6 changes: 5 additions & 1 deletion src/FsAutoComplete/LspServers/FsAutoComplete.Lsp.fs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,11 @@ type FSharpLspServer(state: State, lspClient: FSharpLspClient, sourceTextFactory

let newCommands =
new Commands(
FSharpCompilerServiceChecker(hasAnalyzersNow, config.Fsac.CachedTypeCheckCount, config.Fsac.ParallelReferenceResolution),
FSharpCompilerServiceChecker(
hasAnalyzersNow,
config.Fsac.CachedTypeCheckCount,
config.Fsac.ParallelReferenceResolution
),
state,
hasAnalyzersNow,
rootPath,
Expand Down

0 comments on commit e9a1b0d

Please sign in to comment.