Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Configure Python Env tool#25091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
DonJayamanne merged 9 commits intomainfromdon/injured-frog
May 20, 2025
Merged

Configure Python Env tool#25091

DonJayamanne merged 9 commits intomainfromdon/injured-frog
May 20, 2025

Conversation

DonJayamanne
Copy link

No description provided.

}
},
{
"name": "list_python_packages",
Copy link
Author

Choose a reason for hiding this comment

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

Removed this tool, was disabled

@DonJayamanneDonJayamanne added no-changelogNo news entry required skip package*.jsonpackage.json and package-lock.json don't both need updating skip testsUpdates to tests unnecessary skip-issue-check labelsMay 20, 2025
@@ -103,10 +103,11 @@ export function registerCreateEnvironmentFeatures(
registerCreateEnvironmentProvider(condaCreationProvider()),
onCreateEnvironmentExited(async (e: EnvironmentDidCreateEvent) => {
if (e.path && e.options?.selectEnvironment) {
await interpreterPathService.update(
Copy link
Author

Choose a reason for hiding this comment

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

@karthiknadig Found that this is another place where user action results in updating the Python path.
Instead of injecting another dependency, I decided to use the more generic one that is responsible for all updates topython path,


async activate(_resource: Resource, _startupStopWatch?: StopWatch): Promise<void> {
this.extensionContext.subscriptions.push(
commands.registerCommand('python.getRecommendedEnvironment', async (resource: Resource) => {
Copy link
Author

Choose a reason for hiding this comment

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

Creating a command, I think command is simpler as Jupyter and Python Env extension will need this API.

@@ -569,7 +569,10 @@ export class SetInterpreterCommand extends BaseInterpreterSelectorCommand implem
* @returns true when an interpreter was set, undefined if the user cancelled the quickpick.
*/
@captureTelemetry(EventName.SELECT_INTERPRETER)
public async setInterpreter(): Promise<true | undefined> {
public async setInterpreter(options?: {
Copy link
Author

Choose a reason for hiding this comment

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

@karthiknadig I addedback button andactions into the interpreter quick pick

resourcePath?: string;
}

export class ListPythonPackagesTool implements LanguageModelTool<IResourceReference> {
Copy link
Author

Choose a reason for hiding this comment

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

not required

@DonJayamanneDonJayamanne marked this pull request as ready for reviewMay 20, 2025 03:17
@vs-code-engineeringvs-code-engineeringbot added this to theMay 2025 milestoneMay 20, 2025
@DonJayamanneDonJayamanne merged commit4a602e8 intomainMay 20, 2025
85 checks passed
anthonykim1 pushed a commit to anthonykim1/vscode-python that referenced this pull requestJun 5, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@rebornixrebornixrebornix approved these changes

Assignees

@DonJayamanneDonJayamanne

Labels
no-changelogNo news entry requiredskip package*.jsonpackage.json and package-lock.json don't both need updatingskip testsUpdates to tests unnecessaryskip-issue-check
Projects
None yet
Milestone
May 2025
Development

Successfully merging this pull request may close these issues.

2 participants
@DonJayamanne@rebornix

[8]ページ先頭

©2009-2025 Movatter.jp