From a3b84df1a8ba617901a699816c62b10b5f83663a Mon Sep 17 00:00:00 2001 From: John Norman Date: Tue, 27 Nov 2018 08:08:21 -0800 Subject: [PATCH] Fixes #1269. Command line arguments were checked in an incorrect way. --- src/OmniSharp.Stdio/StdioCommandLineApplication.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OmniSharp.Stdio/StdioCommandLineApplication.cs b/src/OmniSharp.Stdio/StdioCommandLineApplication.cs index ecdf852b7b..1c47d8be51 100644 --- a/src/OmniSharp.Stdio/StdioCommandLineApplication.cs +++ b/src/OmniSharp.Stdio/StdioCommandLineApplication.cs @@ -16,9 +16,9 @@ public StdioCommandLineApplication() : base() _encoding = Application.Option("-e | --encoding", "Input / output encoding for STDIO protocol.", CommandOptionType.SingleValue); } - public bool Stdio => _stdio.GetValueOrDefault(true); + public bool Stdio => true; - public bool Lsp => _lsp.GetValueOrDefault(false); + public bool Lsp => _lsp.HasValue(); public string Encoding => _encoding.GetValueOrDefault(null); }