-
Notifications
You must be signed in to change notification settings - Fork 702
Upgrade the LSP client library for better logging support #8281
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ import { RazorLogger } from '../razor/src/razorLogger'; | |
import { registerRazorEndpoints } from './razor/razorEndpoints'; | ||
|
||
let _channel: vscode.LogOutputChannel; | ||
let _traceChannel: vscode.OutputChannel; | ||
let _traceChannel: vscode.LogOutputChannel; | ||
|
||
/** | ||
* Creates and activates the Roslyn language server. | ||
|
@@ -51,8 +51,7 @@ export async function activateRoslynLanguageServer( | |
// Create a channel for outputting general logs from the language server. | ||
_channel = outputChannel; | ||
// Create a separate channel for outputting trace logs - these are incredibly verbose and make other logs very difficult to see. | ||
// The trace channel verbosity is controlled by the _channel verbosity. | ||
_traceChannel = vscode.window.createOutputChannel(vscode.l10n.t('C# LSP Trace Logs')); | ||
_traceChannel = vscode.window.createOutputChannel(vscode.l10n.t('C# LSP Trace Logs'), { log: true }); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A slightly interesting question. Now that both of these are logger output windows, do we now have a separate log level configuration for the trace window? Previously I manually tied it to the C# output window log level (by detecting changes to the level, and updating the LSP clients trace level), but maybe we shouldn't do that any more? If so, we should remove the code that updates the trace log level based on the C# output window level, and update Support.md to mention how to get the trace lgos. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They both have a setting now yes. I was still noticing that it seemed I had to set the setting for the base one to also get the other one. Where is that code? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
reporter.sendTelemetryEvent(TelemetryEventNames.ClientInitialize); | ||
|
||
|
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.
What was mandating this? And is tsc-watch correct even if we're not doing a live watch?
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.
Me wanting errors to appear when I hit F5 and it failed to build.
Ah good call. Will fix.