-
Notifications
You must be signed in to change notification settings - Fork 728
Clear the OmniSharp channel before restarting the server #2318
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
Codecov Report
@@ Coverage Diff @@
## master #2318 +/- ##
==========================================
+ Coverage 59.75% 59.79% +0.04%
==========================================
Files 83 83
Lines 3764 3768 +4
Branches 547 547
==========================================
+ Hits 2249 2253 +4
+ Misses 1348 1347 -1
- Partials 167 168 +1
Continue to review full report at Codecov.
|
src/omnisharp/server.ts
Outdated
|
|
||
| try { | ||
| let launchResult = await launchOmniSharp(cwd, args, launchInfo, this.platformInfo, options); | ||
| this.eventStream.post(new ObservableEvents.ShowOmniSharpChannel()); |
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.
This would show the OmniSharp log everytime the user launches C# for VS Code? I think that would be very annoying. I would recommend against that behavior.
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.
I don't think we should be showing the OmniSharp Log channel everytime the user launches C# for VS Code.
EDIT: To be clear, I'm fine with clearing the log when restarting. But showing the log every time OmniSharp launches will likely be very annoying to users.
|
@DustinCampbell Understood your concern. Removed the show thing. Now this PR just clears the omnisharp channel whenever there is a restart. |
DustinCampbell
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.
Looks good!
|
thank you - this is a very welcome change! |
Clear the
Omnisharp logchannel when we restart the server to avoid having to navigate through logs from the previous start.A relevant unit test also added to the OmnisharpChannelObserver