Skip to content

Commit

Permalink
Default RoslynSourceText (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAngryByrd authored Sep 28, 2023
1 parent f6d5ddc commit 612f35d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/FsAutoComplete/Parser.fs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ module Parser =
Option<SourceTextFactoryOptions>(
"--source-text-factory",
description =
"Set the source text factory to use. NamedText is the default, and uses an old F# compiler's implementation. RoslynSourceText uses Roslyn's implementation.",
getDefaultValue = fun () -> SourceTextFactoryOptions.NamedText
"Set the source text factory to use. RoslynSourceText is the default, uses Roslyn's implementation. NamedText uses an old F# compiler's implementation.",
getDefaultValue = fun () -> SourceTextFactoryOptions.RoslynSourceText
)

let otelTracingOption =
Expand Down Expand Up @@ -156,7 +156,7 @@ module Parser =
match sourceTextFactoryOption with
| SourceTextFactoryOptions.NamedText -> new NamedTextFactory()
| SourceTextFactoryOptions.RoslynSourceText -> new RoslynSourceTextFactory()
| _ -> new NamedTextFactory()
| _ -> new RoslynSourceTextFactory()

let dotnetPath =
if
Expand Down
2 changes: 1 addition & 1 deletion test/FsAutoComplete.Tests.Lsp/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let lspServers =
]

let sourceTextFactories: (string * ISourceTextFactory) list = [
"NamedText", NamedTextFactory()
// "NamedText", NamedTextFactory()
"RoslynSourceText", RoslynSourceTextFactory()
]

Expand Down

0 comments on commit 612f35d

Please sign in to comment.