mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
Disable pretty output and print a message when running in a VSCode terminal.
# Aider chat conversation:
This commit is contained in:
parent
7930cea227
commit
81a3a7f7af
1 changed files with 4 additions and 4 deletions
|
@ -342,10 +342,6 @@ def main(args=None, input=None, output=None):
|
||||||
|
|
||||||
args = parser.parse_args(args)
|
args = parser.parse_args(args)
|
||||||
|
|
||||||
if 'VSCODE_GIT_IPC_HANDLE' in os.environ:
|
|
||||||
args.pretty = False
|
|
||||||
print("VSCode terminal detected, pretty output has been disabled.")
|
|
||||||
|
|
||||||
if args.dark_mode:
|
if args.dark_mode:
|
||||||
args.user_input_color = "#32FF32"
|
args.user_input_color = "#32FF32"
|
||||||
args.tool_error_color = "#FF3333"
|
args.tool_error_color = "#FF3333"
|
||||||
|
@ -373,6 +369,10 @@ def main(args=None, input=None, output=None):
|
||||||
|
|
||||||
io.tool_output(f"Aider v{__version__}")
|
io.tool_output(f"Aider v{__version__}")
|
||||||
|
|
||||||
|
if 'VSCODE_GIT_IPC_HANDLE' in os.environ:
|
||||||
|
args.pretty = False
|
||||||
|
io.tool_output("VSCode terminal detected, pretty output has been disabled.")
|
||||||
|
|
||||||
if args.git:
|
if args.git:
|
||||||
git_root = setup_git(git_root, io)
|
git_root = setup_git(git_root, io)
|
||||||
check_gitignore(git_root, io)
|
check_gitignore(git_root, io)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue