Skip to content
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

Adds snippets support in LSP mode. #1422

Merged
Prev Previous commit
Next Next commit
[LSP Snippets] Performs null check for _cap.CompletionItem.
  • Loading branch information
demelev committed Apr 2, 2019
commit 476d4396bac3b18861df7bf66513c5240f20dbab
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public async Task<CompletionList> Handle(CompletionParams request, CancellationT
WantKind = true,
WantDocumentationForEveryCompletionResult = true,
WantReturnType = true,
WantSnippet =_capability.CompletionItem.SnippetSupport,
WantSnippet =_capability.CompletionItem?.SnippetSupport ?? false
};

var omnisharpResponse = await _autoCompleteHandler.Handle(omnisharpRequest);
Expand Down