This repository was archived by the owner on May 29, 2026. It is now read-only.
Add VSCode extension configuration to disable CLI colors#1942
Closed
Copilot wants to merge 3 commits into
Closed
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add a configuration option in the vscode extension to turn off colors in the CLI.
- Default is false.
- add "--no-colors" to the cli argument
Add VSCode extension configuration to disable CLI colors
Sep 26, 2025
pelikhan
approved these changes
Sep 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new configuration option
genaiscript.cli.noColorsto the VSCode extension that allows users to disable color output in the CLI. This addresses scenarios where users prefer plain text output or work in environments where ANSI color codes may not render correctly.Changes
New Configuration Option
Added
genaiscript.cli.noColors(boolean, default:false) to the VSCode extension settings:false(colors enabled by default)Implementation Details
VSCODE_CONFIG_CLI_NO_COLORS = "cli.noColors"inpackages/core/src/constants.tsresolveCli(): Modified the function inpackages/vscode/src/config.tsto read and return the new configuration option--no-colorsflag when the configuration is enabled:fragmentcommands.ts: Script debugging executiontaskprovider.ts: Task-based script executionservermanager.ts: Server startup commandsCLI Integration
The existing CLI already supports the
--no-colorsoption and properly handles it by callingsetConsoleColors(false)when the flag is present.Usage
Users can enable this setting by:
Once enabled, the
--no-colorsflag will be automatically passed to all CLI invocations, ensuring consistent plain text output across all GenAIScript operations within VSCode.The implementation maintains backward compatibility and follows the existing patterns in the codebase for configuration management.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.sheetjs.comnode /usr/local/bin/yarn install(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.