- Notifications
You must be signed in to change notification settings - Fork 240
WebSocket Channel #80
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
# Conflicts: # src/PowerShellEditorServices.Host/Program.cs
| Hi @adamdriscoll, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
| @adamdriscoll, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
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.
Weird, is there a line ending conversion happening that makes these files seem like every line changed? What response do you get from this command: git config core.autocrlf
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.
It returns true. Is that why this merge looks like crap?
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.
Mine returns true also so I'm not sure why this would be happening. Strange!
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'm going to just kill my fork and copy in my changes. It's messy anyways.
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.
Check out this StackOverflow answer: http://stackoverflow.com/a/20653073
Maybe core.autocrlf needs to be set to 'input' ? I've never had to use that before, though
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.
Thanks. I'll futz with it. I have a nice clean fork now. :)
| After looking at this PR, I'm going to close it and create one where it's actually readable... |
| Regarding your question about which library this should be in: I think this might be a good time to establish a new channel library pattern by creating a new PowerShellEditorServices.Channel.WebSocket project under the For unit testing, I'm totally fine with self-hosting the socket with OWIN and setting up a local client/server in the unit test code. I'm doing that pretty extensively with the stdio implementation so I don't see a big difference (so long as we can catch the inevitable configuration problems that self-hosting OWIN on a CI server will cause). |
| Channel library convention sounds good to me. I'll make that change. As for the host IIS project, I think I'll just get rid of that. It's really just a standard OWIN ASP.NET host. It would make a good example but not a part of the SDK. Unit testing: Perfect. I'll spend some time on that after I move things around. |
| My ultimate goal is to have one set of LanguageServer and DebugAdapter unit tests that get used commonly across all channel and interface implementations, so don't worry about writing a bunch of unit tests for the new channel other than just making sure that the client/server can send/receive messages. Once I get back to the ILanguageService/IDebugService interface stuff this will all light up pretty fast :) |
| Good to know. I was thinking of inheriting from them someone how for my tests but if you are working on it already I'll let it be. :D |
| By the way @adamdriscoll, this is GitHub -- around here it's perfectly acceptable to rebase and |
| That's basically what I was going to do, make an abstract base that accepts a channel as constructor parameter. I've got a working version of it in an unfinished branch. |
| Haha, yeah, that's what I do, |
Implements WebSocket support using OWIN.
This PR isn't quite done but wanted to started a discussion.
Questions: