Skip to content

Add "no progress" and "no ANSI" environment variables #7647

Description

@aelij

Summary

Allow disabling progress and ANSI using environment variables.

Background and Motivation

When Copilot runs tests, displaying progress and ANSI are just a waste of tokens. It's possible to configure Copilot's terminal using chat.tools.terminal.terminalProfile.<os> and define environment variables. For example:

{
  "chat.tools.terminal.terminalProfile.windows": {
    "icon": "copilot",
    "path": "pwsh",
    "env": {
      "MSBUILDTERMINALLOGGER": "off"
    }
  }
}

Proposed Feature

Add TESTINGPLATFORM_NOPROGRESS and TESTINGPLATFORM_NOANSI as defaults (overridable by CLI args).

Activity

  1. added
    area/mtp
    and removed
    needs/triage
    on Apr 1, 2026
  2. aelij commented on Apr 1, 2026

    @aelij
    MemberAuthor

    Youssef Fahmy (@Youssef1313) Thanks for a quick solution, however this doesn't work inside VS Code. I tried running the code from the PR inside a shell created by Copilot and it retuned false. VS Code doesn't seem to inject env vars indicating it's a copilot session. Of course I could inject one of those env vars using chat.tools.terminal.terminalProfile, but the detector won't work OOB.

  3. Youssef1313 commented on Apr 1, 2026

    @Youssef1313
    Member

    Indeed. Looks like VSCode Copilot doesn't set any of these env vars.

  4. aelij commented on Apr 1, 2026

    @aelij
    MemberAuthor

    Maybe we should ask VS Code to add an env var

  5. Youssef1313 commented on Apr 1, 2026

    @Youssef1313
    Member
  6. Evangelink commented on May 28, 2026

    @Evangelink
    Member

    Closing as complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/mtp

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions