Skip to content

Commit

Permalink
Allow OmniSharp to provide ImplementType Options (#75312)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich authored Dec 19, 2024
2 parents 586b8fa + 11a6576 commit d4b570f
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 42 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,13 @@ public static CodeFixContext CreateCodeFixContext(
TextSpan span,
ImmutableArray<Diagnostic> diagnostics,
Action<CodeAction, ImmutableArray<Diagnostic>> registerCodeFix,
#pragma warning disable IDE0060 // Remove unused parameter
OmniSharpCodeActionOptions options,
#pragma warning restore IDE0060 // Remove unused parameter
CancellationToken cancellationToken)
=> new(document, span, diagnostics, registerCodeFix, cancellationToken);

public static CodeAnalysis.CodeRefactorings.CodeRefactoringContext CreateCodeRefactoringContext(
Document document,
TextSpan span,
Action<CodeAction, TextSpan?> registerRefactoring,
#pragma warning disable IDE0060 // Remove unused parameter
OmniSharpCodeActionOptions options,
#pragma warning restore IDE0060 // Remove unused parameter
CancellationToken cancellationToken)
=> new(document, span, registerRefactoring, cancellationToken);

Expand All @@ -44,9 +38,6 @@ public static FixAllContext CreateFixAllContext(
string? codeActionEquivalenceKey,
IEnumerable<string> diagnosticIds,
FixAllContext.DiagnosticProvider fixAllDiagnosticProvider,
#pragma warning disable IDE0060 // Remove unused parameter
Func<string, OmniSharpCodeActionOptions> optionsProvider,
#pragma warning restore IDE0060 // Remove unused parameter
CancellationToken cancellationToken)
=> new(new FixAllState(
fixAllProvider: NoOpFixAllProvider.Instance,
Expand Down
Loading

0 comments on commit d4b570f

Please sign in to comment.