Skip to content

Commit

Permalink
Normalize completion source in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich committed Sep 26, 2023
1 parent 36a661d commit ebce3c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ public void M()
protected async Task<CompletionList> FindCompletionsAsync(string filename, string source, char? triggerChar = null, TestFile[] additionalFiles = null)
{
var bufferPath = $"{Directory.GetCurrentDirectory()}{Path.DirectorySeparatorChar}somepath{Path.DirectorySeparatorChar}{filename}";
var testFile = new TestFile(bufferPath, source);
var testFile = new TestFile(bufferPath, NormalizeNewlines(source));

var files = new[] { testFile };
if (additionalFiles is object)
Expand Down
2 changes: 1 addition & 1 deletion tests/OmniSharp.Roslyn.CSharp.Tests/CompletionFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,7 @@ private CompletionService GetCompletionService(OmniSharpTestHost host)

protected async Task<CompletionResponse> FindCompletionsAsync(string filename, string source, OmniSharpTestHost testHost, char? triggerChar = null, TestFile[] additionalFiles = null, bool forceExpandedCompletionIndexCreation = false)
{
var testFile = new TestFile(filename, source);
var testFile = new TestFile(filename, NormalizeNewlines(source));

var files = new[] { testFile };
if (additionalFiles is object)
Expand Down

0 comments on commit ebce3c2

Please sign in to comment.