You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when running Parcel in development mode, logger will clean up console on each build. It's usually desired to have a clean console but when integrating with other tools such as VSCode, it's desired to have output of logger concatenated to previous logs instead of clearing the console. VSCode uses output of a program in "tasks" to determine if a task is ready or not. With current setup VSCode is not capable of doing that.
🤔 Expected Behavior
Have a config for logger (maybe level 4) where all logs persist
You could, technically, do process.env['FORCE_COLOR'] = 0; before importing parcel, and that should turn off the clearing behavior. It's an ugly hack, but I think it should work.
Edit: Just looked at the issues, and misunderstood, thought you were asking for a code api. In your case, it looks like you can use environment variables, so just set FORCE_COLOR to 0. That's what I do for Webstorm.
Either way, I'd love to see more documentation, an api, and a commandline flag for this.
🙋 Development Logging without cleaning console
Currently when running Parcel in development mode, logger will clean up console on each build. It's usually desired to have a clean console but when integrating with other tools such as VSCode, it's desired to have output of logger concatenated to previous logs instead of clearing the console. VSCode uses output of a program in "tasks" to determine if a task is ready or not. With current setup VSCode is not capable of doing that.
🤔 Expected Behavior
Have a config for logger (maybe level 4) where all logs persist
😯 Current Behavior
Logger clears the console
🔦 Context
microsoft/vscode#6209 (comment)
https://github.com/mohsen1/parcel-react-typescript-vscode
💻 Examples
The text was updated successfully, but these errors were encountered: