Skip to content

Commit 8ceea71

Browse files
committed
updates
1 parent 2ee1e03 commit 8ceea71

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/client/chat/getPythonEnvTool.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,7 @@ export class GetEnvironmentInfoTool implements LanguageModelTool<IResourceRefere
128128

129129
function BuildEnvironmentInfoContent(envInfo: EnvironmentInfo): LanguageModelTextPart {
130130
// Create a formatted string that looks like JSON but preserves comments
131-
let envTypeDescriptor: string = `This environment is managed by ${envInfo.type} environment manager. Use the install tool to install packages into this environment.`;
132-
133-
// TODO: If this is setup as python.defaultInterpreterPath, then do not include this message.
134-
if (envInfo.type === 'system') {
135-
envTypeDescriptor =
136-
'System pythons are pythons that ship with the OS or are installed globally. These python installs may be used by the OS for running services and core functionality. Confirm with the user before installing packages into this environment, as it can lead to issues with any services on the OS.';
137-
}
131+
const envTypeDescriptor: string = `This environment is managed by ${envInfo.type} environment manager. Use the install tool to install packages into this environment.`;
138132
const content = `{
139133
// ${JSON.stringify(envTypeDescriptor)}
140134
"environmentType": ${JSON.stringify(envInfo.type)},

0 commit comments

Comments
 (0)