Help needed: how to implement services for code actions that shows UI with custom workspace. #33277
Labels
Area-IDE
Concept-API
This issue involves adding, removing, clarification, or modification of an API.
Question
Milestone
I am trying to solve issue on omnisharp OmniSharp/omnisharp-roslyn#1220 which basically at simplest version is:
Later on this could be replaced with fancier implementation.
However when i tried to implement them, i constantly face null reference errors. Source seems to be (in
constructor generator case):
http://source.roslyn.io/#Microsoft.CodeAnalysis.Features/GenerateConstructorFromMembers/GenerateConstructorFromMembersCodeRefactoringProvider.GenerateConstructorWithDialogCodeAction.cs,46
Which points to missing
IPickMembersService
implementation from workspace services. However interface http://source.roslyn.io/#Microsoft.CodeAnalysis.Features/PickMembers/IPickMembersService.cs,8cff688d6aa8c9b2 is internal.Extract interface is likely blocked same way http://source.roslyn.io/#Microsoft.CodeAnalysis.Features/ExtractInterface/IExtractInterfaceOptionsService.cs,10b646dc7f2b7496
Is this feature impossible to implement at current Roslyn or have i understood something wrong? Those interfaces seems correct place to extend feature to work without visual studio specific services like http://source.roslyn.io/#Microsoft.VisualStudio.LanguageServices/Implementation/ExtractInterface/VisualStudioExtractInterfaceOptionsService.cs,70a52353ba9300a3 or http://source.roslyn.io/#Microsoft.VisualStudio.LanguageServices/Implementation/PickMembers/VisualStudioPickMembersService.cs,79994aa8f3e826c4
The text was updated successfully, but these errors were encountered: