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

Update Roslyn to 4.13.0-3.24620.4 #2642

Merged
merged 18 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ indent_size = 4

[*.{yml,yaml}]
indent_size = 2

[tests/**/*.cs]
dotnet_diagnostic.RS1038.severity = none
dotnet_diagnostic.RS1041.severity = none
dotnet_diagnostic.RS1042.severity = none
22 changes: 7 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

name: 'Build'
env:
DotNetVersion: "9.0.100-preview.6.24328.19"
DotNetVersion2: "8.0.303"
DotNetVersion: "9.0.100-rc.1.24452.12"
DotNetVersion2: "8.0.402"
DotNetVersion3: "7.0.410"
DotNetVersion4: "6.0.203" # This is the last version Mono supports. It is used for our Mono CI tests.
NuGetVersion: "6.5.0"
Expand Down Expand Up @@ -36,14 +36,6 @@ jobs:
clean: 'false'
fetch-depth: '0'

# TODO: Need to figure out the correct way to install mono on linux / mac
# Currently the latest image has mono 6.12
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md
# - name: 🔨 Use Mono ${{ env.MonoVersion }} SDK
# uses: maxim-lobanov/setup-xamarin@v1
# with:
# mono-version: ${{ env.MonoVersion }}

- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1
with:
Expand Down Expand Up @@ -71,39 +63,39 @@ jobs:
dotnet cake --configuration=Release --verbosity=Verbose --target=CI --publish-all --archive

- name: ⬆ Publish Logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
name: 'logs - ${{ github.workflow }} ${{ matrix.os }}'
path: '${{ env.Artifacts }}/logs/'

- name: ⬆ Publish Packages
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
name: 'packages'
path: '${{ env.Artifacts }}/package/'

- name: ⬆ Publish Deployment
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
name: 'deployment'
path: '${{ env.Artifacts }}/deployment/'

- name: ⬆ Publish NuGet
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
name: 'nuget'
path: '${{ env.Artifacts }}/nuget/'

- name: ⬆ Publish Scripts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/tests-net6.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

name: 'Tests net6.0'
env:
DotNetVersion: "9.0.100-preview.6.24328.19"
DotNetVersion2: "8.0.303"
DotNetVersion: "9.0.100-rc.1.24452.12"
DotNetVersion2: "8.0.402"
DotNetVersion3: "7.0.410"
DotNetVersion4: "6.0.203" # This is the last version Mono supports. It is used for our Mono CI tests.
NuGetVersion: "6.5.0"
Expand Down Expand Up @@ -39,14 +39,6 @@ jobs:
clean: 'false'
fetch-depth: '0'

# TODO: Need to figure out the correct way to install mono on linux / mac
# Currently the latest image has mono 6.12
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md
# - name: 🔨 Use Mono ${{ env.MonoVersion }} SDK
# uses: maxim-lobanov/setup-xamarin@v1
# with:
# mono-version: ${{ env.MonoVersion }}

- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1
with:
Expand Down Expand Up @@ -82,7 +74,7 @@ jobs:
TEST_PROJECT: ${{ matrix.testProjects }}

- name: ⬆ Publish Logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

name: 'Tests'
env:
DotNetVersion: "9.0.100-preview.6.24328.19"
DotNetVersion2: "8.0.303"
DotNetVersion: "9.0.100-rc.1.24452.12"
DotNetVersion2: "8.0.402"
DotNetVersion3: "7.0.410"
DotNetVersion4: "6.0.203" # This is the last version Mono supports. It is used for our Mono CI tests.
NuGetVersion: "6.5.0"
Expand Down Expand Up @@ -39,14 +39,6 @@ jobs:
clean: 'false'
fetch-depth: '0'

# TODO: Need to figure out the correct way to install mono on linux / mac
# Currently the latest image has mono 6.12
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md
# - name: 🔨 Use Mono ${{ env.MonoVersion }} SDK
# uses: maxim-lobanov/setup-xamarin@v1
# with:
# mono-version: ${{ env.MonoVersion }}

- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1
with:
Expand Down Expand Up @@ -82,7 +74,7 @@ jobs:
TEST_PROJECT: ${{ matrix.testProjects }}

- name: ⬆ Publish Logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/init.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
# Configuration: Release
Verbosity: Normal
DotNetVersion: "8.0.201"
DotNetVersion: "8.0.402"
CakeVersion: "1.1.0"
NuGetVersion: "5.7.0"
MonoVersion: ""
Expand Down
12 changes: 6 additions & 6 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<MicrosoftExtensionPackageVersion>8.0.0</MicrosoftExtensionPackageVersion>
<MicrosoftTestPackageVersion>17.8.0</MicrosoftTestPackageVersion>
<MSBuildPackageVersion>17.3.2</MSBuildPackageVersion>
<NuGetPackageVersion>6.11.0-rc.110</NuGetPackageVersion>
<RoslynPackageVersion>4.12.0-1.24358.3</RoslynPackageVersion>
<NuGetPackageVersion>6.13.0-rc.95</NuGetPackageVersion>
<RoslynPackageVersion>4.13.0-3.24617.3</RoslynPackageVersion>
JoeRobich marked this conversation as resolved.
Show resolved Hide resolved
<XunitPackageVersion>2.6.1</XunitPackageVersion>
</PropertyGroup>

Expand All @@ -19,7 +19,7 @@

<PackageVersion Include="Cake.Scripting.Transport" Version="0.15.0" />

<PackageVersion Include="DiffPlex" Version="1.7.1" />
<PackageVersion Include="DiffPlex" Version="1.7.2" />

<PackageVersion Include="Dotnet.Script.DependencyModel" Version="1.5.0" />
<PackageVersion Include="Dotnet.Script.DependencyModel.NuGet" Version="1.5.0" />
Expand All @@ -43,7 +43,7 @@
<PackageVersion Include="Microsoft.CodeAnalysis.ExternalAccess.OmniSharp" Version="$(RoslynPackageVersion)" />
<PackageVersion Include="Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.CSharp" Version="$(RoslynPackageVersion)" />

<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="$(MicrosoftExtensionPackageVersion)" />
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="$(MicrosoftExtensionPackageVersion)" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="$(MicrosoftExtensionPackageVersion)" />
<PackageVersion Include="Microsoft.Extensions.Configuration.CommandLine" Version="$(MicrosoftExtensionPackageVersion)" />
Expand All @@ -55,7 +55,7 @@
<PackageVersion Include="Microsoft.Extensions.FileSystemGlobbing" Version="$(MicrosoftExtensionPackageVersion)" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="$(MicrosoftExtensionPackageVersion)" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionPackageVersion)" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="$(MicrosoftExtensionPackageVersion)" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="$(MicrosoftExtensionPackageVersion)" />

<PackageVersion Include="Microsoft.Build.Locator" Version="1.6.10" />
Expand Down Expand Up @@ -88,7 +88,7 @@
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="8.0.0" />
<PackageVersion Include="System.Memory" Version="4.5.5" />
<PackageVersion Include="System.Reflection.Metadata" Version="8.0.0" />
<PackageVersion Include="System.Text.Json" Version="8.0.4" />
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
<PackageVersion Include="System.Threading.Tasks.Dataflow" Version="8.0.0" />
<PackageVersion Include="System.ValueTuple" Version="4.5.0" />

Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resources:

variables:
Verbosity: Diagnostic
DotNetVersion: "8.0.303"
DotNetVersion: "8.0.402"
CakeVersion: "3.0.0"
NuGetVersion: "6.5.0"
GitVersionVersion: "5.0.1"
Expand Down
4 changes: 2 additions & 2 deletions build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"DotNetVersions": [
"6.0.203",
"7.0.410",
"8.0.303",
"9.0.100-preview.6.24328.19"
"8.0.402",
"9.0.100-rc.1.24452.12"
],
"RequiredMonoVersion": "6.6.0",
"DownloadURL": "https://roslynomnisharp.blob.core.windows.net/ext",
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.303",
"version": "8.0.402",
"rollForward": "latestMinor"
}
}
2 changes: 1 addition & 1 deletion src/OmniSharp.Abstractions/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ internal static class Configuration
{
public static bool ZeroBasedIndices = false;

public const string RoslynVersion = "4.12.0.0";
public const string RoslynVersion = "4.13.0.0";
public const string RoslynPublicKeyToken = "31bf3856ad364e35";

public readonly static string RoslynFeatures = GetRoslynAssemblyFullName("Microsoft.CodeAnalysis.Features");
Expand Down
52 changes: 52 additions & 0 deletions src/OmniSharp.Host/WorkspaceInitializer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using System.Composition.Hosting;
using System.Linq;
using Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.ImplementType;
using Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.Options;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
Expand Down Expand Up @@ -33,13 +35,15 @@

logger.LogDebug("Starting with OmniSharp options: {options}", options.CurrentValue);
ProvideWorkspaceOptions(compositionHost, workspace, options, logger, omnisharpEnvironment);
ProvideFallbackAnalyzerConfigOptions(workspace, options, logger);

// when configuration options change
// run workspace options providers automatically
options.OnChange(o =>
{
logger.LogDebug("OmniSharp options changed: {options}", options.CurrentValue);
ProvideWorkspaceOptions(compositionHost, workspace, options, logger, omnisharpEnvironment);
ProvideFallbackAnalyzerConfigOptions(workspace, options, logger);
});

var projectSystems = compositionHost.GetExports<IProjectSystem>();
Expand Down Expand Up @@ -100,5 +104,53 @@
}
}
}

private static void ProvideFallbackAnalyzerConfigOptions(
OmniSharpWorkspace workspace,
IOptionsMonitor<OmniSharpOptions> options,
ILogger logger)
{
logger.LogInformation($"Updating the solution's fallback AnalyzerConfigOptions.");
OmniSharpSolutionAnalyzerConfigOptionsUpdater.UpdateOptions(workspace, ToOmniSharpEditorConfigOptions(options.CurrentValue));
}

private static OmniSharpEditorConfigOptions ToOmniSharpEditorConfigOptions(OmniSharpOptions options)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04)

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04)

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Build (windows-2022)

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Build (windows-2022)

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 117 in src/OmniSharp.Host/WorkspaceInitializer.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

The type or namespace name 'OmniSharpEditorConfigOptions' could not be found (are you missing a using directive or an assembly reference?)
{
var lineFormattingOptions = new OmniSharpLineFormattingOptions
{
NewLine = options.FormattingOptions.NewLine,
UseTabs = options.FormattingOptions.UseTabs,
TabSize = options.FormattingOptions.TabSize,
IndentationSize = options.FormattingOptions.IndentationSize,
};

var implementTypeOptions = new OmniSharpImplementTypeOptions
{
InsertionBehavior = ToOmniSharpInsertionBehavior(options.ImplementTypeOptions.InsertionBehavior),
PropertyGenerationBehavior = ToOmniSharpPropertyGenerationBehavior(options.ImplementTypeOptions.PropertyGenerationBehavior),
};

return new OmniSharpEditorConfigOptions
{
LineFormattingOptions = lineFormattingOptions,
ImplementTypeOptions = implementTypeOptions,
};

static OmniSharpImplementTypeInsertionBehavior ToOmniSharpInsertionBehavior(ImplementTypeInsertionBehavior insertionBehavior)
=> insertionBehavior switch
{
ImplementTypeInsertionBehavior.WithOtherMembersOfTheSameKind => OmniSharpImplementTypeInsertionBehavior.WithOtherMembersOfTheSameKind,
ImplementTypeInsertionBehavior.AtTheEnd => OmniSharpImplementTypeInsertionBehavior.AtTheEnd,
_ => throw new ArgumentException(nameof(insertionBehavior))
};

static OmniSharpImplementTypePropertyGenerationBehavior ToOmniSharpPropertyGenerationBehavior(ImplementTypePropertyGenerationBehavior propertyGenerationBehavior)
=> propertyGenerationBehavior switch
{
ImplementTypePropertyGenerationBehavior.PreferThrowingProperties => OmniSharpImplementTypePropertyGenerationBehavior.PreferThrowingProperties,
ImplementTypePropertyGenerationBehavior.PreferAutoProperties => OmniSharpImplementTypePropertyGenerationBehavior.PreferAutoProperties,
_ => throw new ArgumentException(nameof(propertyGenerationBehavior))
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using OmniSharp.Abstractions.Models.V1.FixAll;
using OmniSharp.Mef;
using OmniSharp.Options;
using OmniSharp.Roslyn.CodeActions;
using OmniSharp.Roslyn.CSharp.Services.Refactoring.V2;
using OmniSharp.Roslyn.CSharp.Workers.Diagnostics;
using OmniSharp.Services;
Expand Down Expand Up @@ -140,10 +139,8 @@

_logger.LogTrace("{0} is still present in the document. Getting fixes.", diagnosticId);

var codeActionOptions = CodeActionOptionsFactory.Create(Options);

CodeAction action = null;
var context = OmniSharpCodeFixContextFactory.CreateCodeFixContext(

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (windows-2022)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (windows-2022)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 143 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'
document,
primaryDiagnostic.Location.SourceSpan,
ImmutableArray.Create(primaryDiagnostic),
Expand All @@ -154,7 +151,6 @@
action = a;
}
},
codeActionOptions,
cancellationToken);

await codeFixProvider.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Expand All @@ -167,7 +163,7 @@
_ => throw new InvalidOperationException()
};

var fixAllContext = OmniSharpCodeFixContextFactory.CreateFixAllContext(

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (windows-2022)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (windows-2022)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'

Check failure on line 166 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/RunFixAllCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateFixAllContext(Document?, TextSpan?, Project, CodeFixProvider, FixAllScope, string?, IEnumerable<string>, FixAllContext.DiagnosticProvider, Func<string, OmniSharpCodeActionOptions>, CancellationToken)'
document,
primaryDiagnostic.Location.SourceSpan,
document.Project,
Expand All @@ -176,7 +172,6 @@
action?.EquivalenceKey,
ImmutableArray.Create(diagnosticId),
_fixAllDiagnosticProvider,
_ => codeActionOptions,
cancellationToken);

_logger.LogTrace("Finding FixAll fix for {0}.", diagnosticId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using OmniSharp.Models;
using OmniSharp.Models.V2.CodeActions;
using OmniSharp.Options;
using OmniSharp.Roslyn.CodeActions;
using OmniSharp.Roslyn.CSharp.Helpers;
using OmniSharp.Roslyn.CSharp.Services.Diagnostics;
using OmniSharp.Roslyn.CSharp.Workers.Diagnostics;
Expand Down Expand Up @@ -137,20 +136,17 @@

private async Task AppendFixesAsync(Document document, TextSpan span, IEnumerable<Diagnostic> diagnostics, List<(CodeAction CodeAction, string CodeActionKind)> codeActions)
{
var codeActionOptions = CodeActionOptionsFactory.Create(Options);

foreach (var codeFixProvider in GetSortedCodeFixProviders(document))
{
var fixableDiagnostics = diagnostics.Where(d => HasFix(codeFixProvider, d.Id)).ToImmutableArray();

if (fixableDiagnostics.Length > 0)
{
var context = OmniSharpCodeFixContextFactory.CreateCodeFixContext(

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (windows-2022)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 145 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeFixContext(Document, TextSpan, ImmutableArray<Diagnostic>, Action<CodeAction, ImmutableArray<Diagnostic>>, OmniSharpCodeActionOptions, CancellationToken)'
document,
span,
fixableDiagnostics,
(a, _) => codeActions.Add((a, CodeActionKind.QuickFix)),
codeActionOptions,
CancellationToken.None);

try
Expand Down Expand Up @@ -184,14 +180,13 @@

private async Task CollectRefactoringActions(Document document, TextSpan span, List<(CodeAction CodeAction, string CodeActionKind)> codeActions)
{
var codeActionOptions = CodeActionOptionsFactory.Create(Options);
var availableRefactorings = OrderedCodeRefactoringProviders.Value;

foreach (var codeRefactoringProvider in availableRefactorings)
{
try
{
var context = OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Build (windows-2022)

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-20.04, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'

Check failure on line 189 in src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/BaseCodeActionService.cs

View workflow job for this annotation

GitHub Actions / Test (windows-2022, OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Te...

There is no argument given that corresponds to the required parameter 'cancellationToken' of 'OmniSharpCodeFixContextFactory.CreateCodeRefactoringContext(Document, TextSpan, Action<CodeAction, TextSpan?>, OmniSharpCodeActionOptions, CancellationToken)'
document,
span,
(a, _) =>
Expand All @@ -211,7 +206,6 @@
}
codeActions.Add((a, kind));
},
codeActionOptions,
CancellationToken.None);

await codeRefactoringProvider.ComputeRefactoringsAsync(context);
Expand Down
Loading
Loading