@@ -228,7 +228,7 @@ type internal FSharpCompletionProvider
228228 let! sourceText = context.Document.GetTextAsync( context.CancellationToken)
229229 let defines = projectInfoManager.GetCompilationDefinesForEditingDocument( document)
230230 do ! Option.guard ( CompletionUtils.shouldProvideCompletion( document.Id, document.FilePath, defines, sourceText, context.Position))
231- let! _parsingOptions , projectOptions = projectInfoManager.TryGetOptionsForEditingDocumentOrProject( document, context.CancellationToken)
231+ let! _parsingOptions , projectOptions = projectInfoManager.TryGetOptionsForEditingDocumentOrProject( document, context.CancellationToken, userOpName )
232232 let! textVersion = context.Document.GetTextVersionAsync( context.CancellationToken)
233233 let getAllSymbols ( fileCheckResults : FSharpCheckFileResults ) =
234234 if settings.IntelliSense.IncludeSymbolsFromUnopenedNamespacesOrModules
@@ -298,7 +298,7 @@ type internal FSharpCompletionProvider
298298 let! sourceText = document.GetTextAsync( cancellationToken)
299299 let textWithItemCommitted = sourceText.WithChanges( TextChange( item.Span, nameInCode))
300300 let line = sourceText.Lines.GetLineFromPosition( item.Span.Start)
301- let! parsingOptions , _options = projectInfoManager.TryGetOptionsForEditingDocumentOrProject( document, cancellationToken)
301+ let! parsingOptions , _options = projectInfoManager.TryGetOptionsForEditingDocumentOrProject( document, cancellationToken, userOpName )
302302 let! parsedInput = checker.ParseDocument( document, parsingOptions, sourceText, userOpName)
303303 let fullNameIdents = fullName |> Option.map ( fun x -> x.Split '.' ) |> Option.defaultValue [||]
304304
0 commit comments