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

upgraded to omnisharp server and client 18 #612

Merged
merged 1 commit into from
Oct 7, 2020
Merged

Conversation

majastrz
Copy link
Member

@majastrz majastrz commented Oct 7, 2020

Upgraded to omnisharp server and client 18. (Dependabot couldn't do it automatically due to breaking changes.) Theoretically this fixes the PrepareRename handler, so we can leverage it and make it easier to run the language server as-is in the playground.

@@ -34,7 +36,7 @@ public async Task EmptyFileShouldProduceDeclarationCompletions()
const string expectedSetName = "declarations";
var uri = DocumentUri.From($"/{this.TestContext!.TestName}");

using var client = await IntegrationTestHelper.StartServerWithText(string.Empty, uri);
using var client = await IntegrationTestHelper.StartServerWithTextAsync(string.Empty, uri);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of the new packages brought in some sort of threading analyzer which wanted to call things *Async if they are awaitable. I thought it made sense so didn't fight it too much.

@codecov-io
Copy link

codecov-io commented Oct 7, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@91c213f). Click here to learn what that means.
The diff coverage is 92.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #612   +/-   ##
=========================================
  Coverage          ?   95.00%           
=========================================
  Files             ?      235           
  Lines             ?     9100           
  Branches          ?        0           
=========================================
  Hits              ?     8645           
  Misses            ?      455           
  Partials          ?        0           
Flag Coverage Δ
#dotnet 95.00% <92.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...icep.LangServer/Handlers/BicepCompletionHandler.cs 89.47% <ø> (ø)
...angServer/Handlers/BicepTextDocumentSyncHandler.cs 94.11% <ø> (ø)
src/Bicep.LangServer/Program.cs 0.00% <0.00%> (ø)
src/Bicep.LangServer/Server.cs 90.90% <ø> (ø)
...cep.LangServer.IntegrationTests/CompletionTests.cs 85.89% <100.00%> (ø)
...cep.LangServer.IntegrationTests/DefinitionTests.cs 100.00% <100.00%> (ø)
...LangServer.IntegrationTests/DocumentSymbolTests.cs 100.00% <100.00%> (ø)
....IntegrationTests/Helpers/IntegrationTestHelper.cs 96.96% <100.00%> (ø)
...icep.LangServer.IntegrationTests/HighlightTests.cs 97.50% <100.00%> (ø)
...rc/Bicep.LangServer.IntegrationTests/HoverTests.cs 98.93% <100.00%> (ø)
... and 5 more

@@ -17,19 +17,19 @@ namespace Bicep.LanguageServer
{
public class BicepCompilationManager : ICompilationManager
{
private readonly ILanguageServer server;
private readonly ILanguageServerFacade server;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This took me forever to figure out. It was failing on startup with a useless exception. Ended trying a ton of different things and eventually read the omnisharp "breaking changes" PRs where they mentioned this change 🤦‍♂️.

Copy link
Member

@anthony-c-martin anthony-c-martin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@majastrz majastrz merged commit 81938ed into master Oct 7, 2020
@majastrz majastrz deleted the majastrz/omnisharp18 branch October 7, 2020 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants