Skip to content

Commit c1ca4b2

Browse files
committed
Remove unwanted messages
1 parent e1b6069 commit c1ca4b2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/features/copilotTools.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,8 @@ export class GetEnvironmentInfoTool implements LanguageModelTool<IResourceRefere
139139

140140
function BuildEnvironmentInfoContent(envInfo: EnvironmentInfo): LanguageModelTextPart {
141141
// Create a formatted string that looks like JSON but preserves comments
142-
let envTypeDescriptor: string = `This environment is managed by ${envInfo.type} environment manager. Use the install tool to install packages into this environment.`;
142+
const envTypeDescriptor: string = `This environment is managed by ${envInfo.type} environment manager. Use the install tool to install packages into this environment.`;
143143

144-
if (envInfo.type === 'system') {
145-
envTypeDescriptor =
146-
'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.';
147-
}
148144
const content = `{
149145
// ${JSON.stringify(envTypeDescriptor)}
150146
"environmentType": ${JSON.stringify(envInfo.type)},

0 commit comments

Comments
 (0)