Skip to content

Commit 48c9cf9

Browse files
committed
log
1 parent 3c731ec commit 48c9cf9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lsptoolshost/roslynLanguageServer.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,9 @@ export class RoslynLanguageServer {
607607
args.push('--extension', extensionPath);
608608
}
609609

610-
if (logLevel && [Trace.Messages, Trace.Verbose].includes(this.GetTraceLevel(logLevel))) {
610+
const isTraceLogLevel = logLevel && [Trace.Messages, Trace.Verbose].includes(this.GetTraceLevel(logLevel));
611+
612+
if (isTraceLogLevel) {
611613
_channel.appendLine(`Starting server at ${serverPath}`);
612614
}
613615

@@ -620,6 +622,9 @@ export class RoslynLanguageServer {
620622
if (!languageServerOptions.useServerGC) {
621623
// The server by default uses serverGC, if the user opts out we need to set the environment variable to disable it.
622624
env.DOTNET_gcServer = '0';
625+
if (isTraceLogLevel) {
626+
_channel.appendLine("ServerGC disabled");
627+
}
623628
}
624629

625630
let childProcess: cp.ChildProcessWithoutNullStreams;

0 commit comments

Comments
 (0)