Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
<!-- StyleCop: style and documentation rules (PrivateAssets avoids leaking to consumers) -->
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="all" />
<!-- Roslynator: additional code-quality analyzers and refactorings -->
<PackageReference Include="Roslynator.Analyzers" Version="5.0.0" PrivateAssets="all" />
<PackageReference Include="Roslynator.Analyzers" Version="5.0.1" PrivateAssets="all" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions Server.Tests/Server.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.10.1" />
<PackageReference Include="MSTest" Version="4.4.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
<PackageReference Include="MSTest" Version="4.5.1" />
</ItemGroup>

<ItemGroup>
Expand Down
20 changes: 20 additions & 0 deletions Server.Tests/StringOrMarkupContentExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------

using OmniSharp.Extensions.LanguageServer.Protocol.Models;

namespace SdkLspServer.Tests;

/// <summary>
/// Test helpers for <see cref="StringOrMarkupContent"/>, which is the type of
/// <see cref="Diagnostic.Message"/> in OmniSharp LanguageServer 0.19.11+.
/// </summary>
internal static class StringOrMarkupContentExtensions
{
public static string GetText(this StringOrMarkupContent content) =>
content.String ?? content.MarkupContent?.Value ?? string.Empty;

public static bool Contains(this StringOrMarkupContent content, string value, StringComparison comparison) =>
content.GetText().Contains(value, comparison);
}
12 changes: 6 additions & 6 deletions Server/SdkLspServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
<None Include="Handlers/HoverHandler/DynamicOperationsMetadata.json" CopyToOutputDirectory="PreserveNewest" />
<PackageReference Include="Azure.Identity" Version="1.21.0" />
<PackageReference Include="ICSharpCode.Decompiler" Version="11.1.0.9782" />
<PackageReference Include="Microsoft.ApplicationInsights" Version="3.1.2" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="3.1.2" />
<PackageReference Include="Microsoft.ApplicationInsights" Version="3.2.0" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="3.2.0" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="5.9.0" />
<PackageReference Include="System.Reflection.MetadataLoadContext" Version="10.0.12" />
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.12" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.12" />
<PackageReference Include="System.Reflection.MetadataLoadContext" Version="10.0.13" />
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.13" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.13" />
<PackageReference Include="NuGet.Configuration" Version="7.9.0" />
<PackageReference Include="NuGet.Packaging" Version="7.9.0" />
<PackageReference Include="OmniSharp.Extensions.LanguageServer" Version="0.19.9" />
<PackageReference Include="OmniSharp.Extensions.LanguageServer" Version="0.19.11" />
<!-- SharpZipLib provides ZIP handling for NuGet packages -->
<PackageReference Include="SharpZipLib" Version="1.4.2" />
<PackageReference Include="ZiggyCreatures.FusionCache" Version="2.9.0" />
Expand Down
Loading