Skip to content

Commit

Permalink
Merge pull request #2497 from allisonchou/FixCompletionBug
Browse files Browse the repository at this point in the history
Disable snippets in synchronous completion logic
  • Loading branch information
dibarbet authored Jan 18, 2023
2 parents cc23e78 + 17715ad commit bddaff4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ internal static partial class CompletionListBuilder
{
TextSpan changeSpan = typedSpan;
var completion = completions.ItemsList[i];

// To-do: Add support for snippet items: https://github.com/OmniSharp/omnisharp-roslyn/issues/2485
if (completion.GetProviderName() == SnippetCompletionProvider)
{
continue;
}

var insertTextFormat = InsertTextFormat.PlainText;
string labelText = completion.DisplayTextPrefix + completion.DisplayText + completion.DisplayTextSuffix;
List<LinePositionSpanTextChange>? additionalTextEdits = null;
Expand Down

0 comments on commit bddaff4

Please sign in to comment.