-
Notifications
You must be signed in to change notification settings - Fork 48
Fix up some logging (Quarto CLI discovery, extension host warnings) #878
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
Conversation
vezwork
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with questions
| colorTheme: workbench?.colorTheme ?? this._settings.workbench.colorTheme | ||
| }, | ||
| quarto: { | ||
| logLevel: Logger.parseLogLevel(settings.quarto.server.logLevel), | ||
| path: settings.quarto.path, | ||
| logLevel: Logger.parseLogLevel(quarto?.server?.logLevel), | ||
| path: quarto?.path ?? this._settings.quarto.path, | ||
| mathjax: { | ||
| scale: settings.quarto.mathjax.scale, | ||
| extensions: settings.quarto.mathjax.extensions | ||
| scale: quarto?.mathjax?.scale ?? this._settings.quarto.mathjax.scale, | ||
| extensions: quarto?.mathjax?.extensions ?? this._settings.quarto.mathjax.extensions | ||
| }, | ||
| symbols: { | ||
| exportToWorkspace: settings.quarto.symbols.exportToWorkspace | ||
| exportToWorkspace: quarto?.symbols?.exportToWorkspace ?? this._settings.quarto.symbols.exportToWorkspace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, more defensive (less error possibilities and risk of things being undefined) and probably more correct.
|
Oh! P.s. I like the indentation you've done on the logs! |
This PR addresses:
After these changes, you'll see logs like this in the Quarto output channel, depending of course on the exact details of how your Quarto is configured:
I went fairly verbose on these logs and am open to feedback about this being overkill, but I tend to think more is better, at least to some level. I did not add any of this to the status bar or anything like that; I think that the output channel is a good spot for folks to look for this kind of info.