Skip to content

Commit 1431e23

Browse files
authored
Don't lift the result of getting a symbol use in the add open code fix (#10594)
1 parent 8f880b7 commit 1431e23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vsintegration/src/FSharp.Editor/CodeFix/AddOpenCodeFixProvider.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ type internal FSharpAddOpenCodeFixProvider
104104
let defines = CompilerEnvironment.GetCompilationDefinesForEditing parsingOptions
105105

106106
let! symbol =
107-
asyncMaybe {
107+
maybe {
108108
let! lexerSymbol = Tokenizer.getSymbolAtPosition(document.Id, sourceText, context.Span.End, document.FilePath, defines, SymbolLookupKind.Greedy, false, false)
109109
return checkResults.GetSymbolUseAtLocation(Line.fromZ linePos.Line, lexerSymbol.Ident.idRange.EndColumn, line.ToString(), lexerSymbol.FullIsland)
110-
} |> liftAsync
110+
}
111111

112112
do! Option.guard symbol.IsNone
113113

0 commit comments

Comments
 (0)