Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 3cb1914

Browse files
cartermpnosami
authored andcommitted
Don't lift the result of getting a symbol use in the add open code fix (dotnet#10594)
1 parent 979dc46 commit 3cb1914

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)