diff --git a/package.json b/package.json index e43a8a6f..333b56ce 100644 --- a/package.json +++ b/package.json @@ -510,7 +510,7 @@ "languageModelTools": [ { "name": "python_environment", - "userDescription": "Get Python environment info for a file or path, including version, packages, and the command to run it.", + "userDescription": "%python.languageModelTools.python_environment.userDescription%", "displayName": "Get Python Environment Information", "modelDescription": "Provides details about the Python environment for a specified file or workspace, including environment type, Python version, run command, and installed packages with their versions. Use this tool to determine the correct command for executing Python code in this workspace.", "toolReferenceName": "pythonGetEnvironmentInfo", @@ -535,7 +535,7 @@ { "name": "python_install_package", "displayName": "Install Python Package", - "userDescription": "Installs Python packages in the given workspace", + "userDescription": "%python.languageModelTools.python_install_package.userDescription%", "modelDescription": "Installs Python packages in the given workspace. Use this tool to install packages in the user's chosen environment.", "toolReferenceName": "pythonInstallPackage", "tags": [ diff --git a/package.nls.json b/package.nls.json index a0c0a64e..a0ab1f6f 100644 --- a/package.nls.json +++ b/package.nls.json @@ -33,5 +33,7 @@ "python-envs.runAsTask.title": "Run as Task", "python-envs.terminal.activate.title": "Activate Environment in Current Terminal", "python-envs.terminal.deactivate.title": "Deactivate Environment in Current Terminal", - "python-envs.uninstallPackage.title": "Uninstall Package" -} + "python-envs.uninstallPackage.title": "Uninstall Package", + "python.languageModelTools.python_environment.userDescription": "Get Python environment info for a file or path, including version, packages, and the command to run it.", + "python.languageModelTools.python_install_package.userDescription": "Installs Python packages in the given workspace." +} \ No newline at end of file diff --git a/src/managers/conda/condaUtils.ts b/src/managers/conda/condaUtils.ts index 8977d0ec..ed3e3ac8 100644 --- a/src/managers/conda/condaUtils.ts +++ b/src/managers/conda/condaUtils.ts @@ -881,7 +881,7 @@ export async function refreshPackages( const packages: Package[] = []; content.forEach((l) => { const parts = l.split(' ').filter((p) => p.length > 0); - if (parts.length === 3) { + if (parts.length >= 3) { const pkg = api.createPackageItem( { name: parts[0],