Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion vscode-dotnet-runtime-library/src/Utils/CommandExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,18 @@ ${stderr}`));
options.env.DOTNET_CLI_UI_LANGUAGE ??= 'en-US';
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
options.env.DOTNET_NOLOGO ??= 'true';
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
options.env.NO_COLOR ??= '1';
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
options.env.TERM ??= 'dumb';
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
options.env.GREP_OPTIONS = undefined;
}
else
{
options = {
cwd: path.resolve(__dirname), shell: true, encoding: 'utf8', env:
{ ...process.env, DOTNET_CLI_UI_LANGUAGE: 'en-US', DOTNET_NOLOGO: 'true' }
{ ...process.env, DOTNET_CLI_UI_LANGUAGE: 'en-US', DOTNET_NOLOGO: 'true', NO_COLOR: '1', TERM: 'dumb', GREP_OPTIONS: undefined }
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ const possiblyUsefulUpperCaseEnvVars = new Set<string>([ // This is a local vari
'PWD',
'BASHOPTS',
'SHELLOPTS',
'GREP_OPTIONS',
'NO_COLOR',
'PS1',
'PS2',
'DOTNET_INSTALL_TOOL_UNDER_TEST',
Expand Down
Loading