Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VSCode] How can tsp compiler disable message format (pretty with color) for error #5468

Open
chunyu3 opened this issue Jan 2, 2025 · 0 comments
Labels
compiler:core Issues for @typespec/compiler design:needed A design request has been raised that needs a proposal triaged:core
Milestone

Comments

@chunyu3
Copy link
Contributor

chunyu3 commented Jan 2, 2025

VSCode terminal does not support colored Text, as result it will show as messy code,
(as following, an exception throw from http-client-csharp emitter, compiler catch this exception and log it as ExternalError)

Image

Can tsp compiler provide a way to disable format error message?

Current diagnostics has honor --pretty false to disable format diagnostics message as following:

return options.pretty ? color(text) : text;

Can tsp compiler honor --pretty for error message as diagnostics to disable message format?

console.error(error.render(color));

@chunyu3 chunyu3 changed the title [VSCode] How can tsp compiler disable message format for error [VSCode] How can tsp compiler disable message format (pretty with color) for error Jan 2, 2025
@markcowl markcowl added design:needed A design request has been raised that needs a proposal triaged:core compiler:core Issues for @typespec/compiler labels Jan 7, 2025
@markcowl markcowl added this to the Backlog milestone Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:core Issues for @typespec/compiler design:needed A design request has been raised that needs a proposal triaged:core
Projects
None yet
Development

No branches or pull requests

2 participants