Skip to content

Add IFSharpInlineHintsService2 for displayAllOverride support#82629

Merged
JoeRobich merged 2 commits into
dotnet:mainfrom
majocha:fsharp-inlinehints-altf1-compat
Mar 4, 2026
Merged

Add IFSharpInlineHintsService2 for displayAllOverride support#82629
JoeRobich merged 2 commits into
dotnet:mainfrom
majocha:fsharp-inlinehints-altf1-compat

Conversation

@majocha

@majocha majocha commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Introduce IFSharpInlineHintsService2 to enable F# inline hints providers to handle displayAllOverride. Update FSharpInlineHintsService to prefer the new interface if available, with fallback to the legacy interface. Adjust MEF constructor and GetInlineHintsAsync logic accordingly. Update public API file to reflect new interface and method. This enhances flexibility and feature support for F# inline hints in Roslyn.

Fixes #82614

Introduce IFSharpInlineHintsService2 to enable F# inline hints providers to handle displayAllOverride. Update FSharpInlineHintsService to prefer the new interface if available, with fallback to the legacy interface. Adjust MEF constructor and GetInlineHintsAsync logic accordingly. Update public API file to reflect new interface and method. This enhances flexibility and feature support for F# inline hints in Roslyn.
@dotnet-policy-service dotnet-policy-service Bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Mar 4, 2026
Comment thread src/VisualStudio/ExternalAccess/FSharp/InlineHints/IFSharpInlineHintsService2.cs Outdated
Comment thread src/VisualStudio/ExternalAccess/FSharp/InternalAPI.Unshipped.txt
@majocha majocha marked this pull request as ready for review March 4, 2026 13:30
@majocha majocha requested a review from a team as a code owner March 4, 2026 13:30
@JoeRobich

Copy link
Copy Markdown
Member

Thanks @majocha!

@JoeRobich JoeRobich merged commit a87f3d6 into dotnet:main Mar 4, 2026
25 checks passed
@dotnet-policy-service dotnet-policy-service Bot added this to the Next milestone Mar 4, 2026
@majocha majocha deleted the fsharp-inlinehints-altf1-compat branch March 9, 2026 07:08
333fred added a commit to 333fred/roslyn that referenced this pull request Mar 9, 2026
* upstream/main: (56 commits)
  [main] Source code updates from dotnet/dotnet (dotnet#82655)
  Update insert.yml to use roslyn-tools for insertions (dotnet#82615)
  Localized file check-in by OneLocBuild Task: Build definition ID 327: Build ID 2921538
  Localized file check-in by OneLocBuild Task: Build definition ID 327: Build ID 2921538
  Reduce allocations during source text diffing (dotnet#82462)
  Localized file check-in by OneLocBuild Task: Build definition ID 327: Build ID 2920904
  Localized file check-in by OneLocBuild Task: Build definition ID 327: Build ID 2920904
  Revert "Throw NotImplementedException when a build errorId is not supported" (dotnet#82638)
  [main] Source code updates from dotnet/dotnet (dotnet#82623)
  Revert System.ValueTuple version update (dotnet#82639)
  Pack enum values
  Track non-blocking PROTOTYPE comments for `Unions` feature in an issue (dotnet#82637)
  Update the build system errors instructions for Visual Studio 2026
  Don't log named pipe connection failures as errors in BuildServerConnection (dotnet#82609)
  Fix resx source generator for less common resx metadata and locations (dotnet#81994)
  Disallow `ref` modifier for a union declaration (dotnet#82632)
  Add IFSharpInlineHintsService2 for displayAllOverride support (dotnet#82629)
  Report errors for union members that are not permitted (dotnet#82626)
  Check language version for union matching and conversions (dotnet#82617)
  [main] Update dependencies from dotnet/arcade (dotnet#82618)
  ...
@jjonescz jjonescz modified the milestones: Next, 18.6 Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

F# inlay hints do not work with Alt-F1 momentary toggle

5 participants