Skip to content

Expose interpreter quickpick API with filtering - #19839

Merged
Kartik Raj (karrtikr) merged 5 commits into
microsoft:mainfrom
karrtikr:interpreterquickpick
Sep 15, 2022
Merged

Expose interpreter quickpick API with filtering#19839
Kartik Raj (karrtikr) merged 5 commits into
microsoft:mainfrom
karrtikr:interpreterquickpick

Conversation

@karrtikr

Copy link
Copy Markdown

No description provided.

@karrtikr Kartik Raj (karrtikr) added the no-changelog No news entry required label Sep 14, 2022
serviceManager.addSingleton<IExtensionSingleActivationService>(
IExtensionSingleActivationService,
SetInterpreterCommand,
);
serviceManager.addSingleton(IInterpreterQuickPick, SetInterpreterCommand);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to have used the same SetInterpreterCommand object for both these interfaces but I'm not quite sure how to do that. Used

serviceManager.addBinding(IInterpreterQuickPick, IExtensionSingleActivationService)

But that still seems to create a new instance.

@karrtikr
Kartik Raj (karrtikr) marked this pull request as ready for review September 14, 2022 23:34
@karrtikr
Kartik Raj (karrtikr) marked this pull request as draft September 14, 2022 23:35
@karrtikr
Kartik Raj (karrtikr) marked this pull request as ready for review September 14, 2022 23:39
@karrtikr
Kartik Raj (karrtikr) merged commit cb3c629 into microsoft:main Sep 15, 2022
@karrtikr
Kartik Raj (karrtikr) deleted the interpreterquickpick branch September 15, 2022 05:31
Eleanor Boyd (eleanorjboyd) pushed a commit to eleanorjboyd/vscode-python that referenced this pull request Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog No news entry required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants