Skip to content

Commit

Permalink
fixing typos (#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAngryByrd authored Jul 9, 2023
1 parent 4472d83 commit 5d5ffe8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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

0 comments on commit 5d5ffe8

Please sign in to comment.