Skip to content

Commit 637ed3e

Browse files
committed
Updates
1 parent 5130365 commit 637ed3e

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,13 @@
603603
"inputSchema": {
604604
"type": "object",
605605
"properties": {
606+
"packageList": {
607+
"type": "array",
608+
"items": {
609+
"type": "string"
610+
},
611+
"description": "The list of packages to install."
612+
},
606613
"resourcePath": {
607614
"type": "string",
608615
"description": "The path to the Python file or workspace for which a Python Environment needs to be configured."

src/features/chat/createQuickVenvTool.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { SysPythonManager } from '../../managers/builtin/sysPythonManager';
2020
import { ensureGlobalEnv } from '../../managers/builtin/venvUtils';
2121

2222
export interface IResourceReference {
23+
packageList?: string[];
2324
resourcePath?: string;
2425
}
2526

@@ -41,6 +42,10 @@ export class CreateQuickVirtualEnvironmentTool implements LanguageModelTool<IRes
4142
selectEnvironment: true,
4243
quickCreate: true,
4344
uri: resourcePath,
45+
additionalPackages:
46+
Array.isArray(options.input.packageList) && options.input.packageList.length
47+
? options.input.packageList
48+
: [],
4449
});
4550
if (env) {
4651
const message = await getEnvironmentDetails(

0 commit comments

Comments
 (0)