-
Notifications
You must be signed in to change notification settings - Fork 236
Ensure NamedPipeServerStream is assigned in Windows PowerShell #955
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
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.
LGTM just remove the usings
@@ -13,7 +13,9 @@ | |||
using System.Runtime.InteropServices; | |||
using System.Security.AccessControl; | |||
using System.Security.Principal; | |||
using System.Threading; |
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.
delete?
using System.Threading.Tasks; | ||
using System.Diagnostics; |
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.
delete?
I can't believe I forgot to make that assignment 🤦♂️ |
@@ -20,28 +20,29 @@ namespace Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.Channel | |||
public class NamedPipeServerListener : ServerListenerBase<NamedPipeServerChannel> | |||
{ | |||
// This int will be casted to a PipeOptions enum that only exists in .NET Core 2.1 and up which is why it's not available to us in .NET Standard. | |||
private const int CurrentUserOnly = 536870912; | |||
private const int CurrentUserOnly = 0x20000000; |
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.
Lol that explains the weird decimal number
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.
LGTM
Fixes #954.
There was a small missing assignment in the startup under the .NET Framework branch.
WIP because I'm going to make some style changes :)Merging this will also make #944 pass its Windows PS test!