Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing typos #1136

Merged
merged 1 commit into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/FsAutoComplete.Core/AdaptiveExtensions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module AVal =
/// <summary>
/// Calls a mapping function which creates additional dependencies to be tracked.
/// </summary>
let mapWithAdditionalDependenies (mapping: 'a -> 'b * #seq<#IAdaptiveValue>) (value: aval<'a>) : aval<'b> =
let mapWithAdditionalDependencies (mapping: 'a -> 'b * #seq<#IAdaptiveValue>) (value: aval<'a>) : aval<'b> =
let mutable lastDeps = HashSet.empty

{ new AVal.AbstractVal<'b>() with
Expand Down Expand Up @@ -176,7 +176,7 @@ module AMap =
| None -> HashSet.empty


/// Reader for batchRecalc operations.
/// Reader for batchRecalculate operations.
[<Sealed>]
type BatchRecalculateDirty<'k, 'a, 'b>(input: amap<'k, 'a>, mapping: HashMap<'k, 'a> -> HashMap<'k, aval<'b>>) =
inherit AbstractReader<HashMapDelta<'k, 'b>>(HashMapDelta.empty)
Expand Down Expand Up @@ -224,14 +224,14 @@ module AMap =

cache <-
match HashMap.tryRemove i cache with
| Some(o, remaingCache) ->
| Some(o, remainingCache) ->
let rem, rest = MultiSetMap.remove o i targets
targets <- rest

if rem then
o.Outputs.Remove x |> ignore

remaingCache
remainingCache
| None -> cache

match op with
Expand Down Expand Up @@ -301,7 +301,7 @@ module AMap =
=
let mapping =
mapping
>> HashMap.map (fun _ v -> AVal.constant v |> AVal.mapWithAdditionalDependenies (id))
>> HashMap.map (fun _ v -> AVal.constant v |> AVal.mapWithAdditionalDependencies (id))

batchRecalcDirty mapping map

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 @@ -58,7 +58,7 @@ let lspServers =

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

let mutable toolsPath =
Expand Down