Skip to content

Cannot implement both IFeedbackProvider and ICommandPredictor in same class #18853

@SteveL-MSFT

Description

@SteveL-MSFT

Prerequisites

Steps to reproduce

I'd like to have a single class implement both IFeedbackProvider and ICommandPredictor, however, because ISubsystem.Kind is internal, I can't specify it.

I suppose one option is to introduce a new IFeedbackProviderCommandPredictor interface for this purpose which can internally set ISubsystem.Kind to the right value.

cc @dax

Expected behavior

Able to implement both IFeedbackProvider and ICommandPredictor in a single class

Actual behavior

Fails to compile because there isn't a single implementation of ISubsystem.Kind

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.0-preview.1
PSEdition                      Core
GitCommitId                    7.4.0-preview.1
OS                             Microsoft Windows 10.0.25267
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions