Skip to content

Commit

Permalink
Merge pull request #62735 from CyrusNajmabadi/removePushDiagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi authored Mar 7, 2024
2 parents 80ccafa + 0f7211d commit 3ab3ca7
Show file tree
Hide file tree
Showing 46 changed files with 136 additions and 3,531 deletions.
2 changes: 1 addition & 1 deletion eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ function Deploy-VsixViaTool() {
# Configure LSP
$lspRegistryValue = [int]$lspEditor.ToBool()
&$vsRegEdit set "$vsDir" $hive HKCU "FeatureFlags\Roslyn\LSP\Editor" Value dword $lspRegistryValue
&$vsRegEdit set "$vsDir" $hive HKCU "FeatureFlags\Lsp\PullDiagnostics" Value dword $lspRegistryValue
&$vsRegEdit set "$vsDir" $hive HKCU "FeatureFlags\Lsp\PullDiagnostics" Value dword 1

# Disable text editor error reporting because it pops up a dialog. We want to either fail fast in our
# custom handler or fail silently and continue testing.
Expand Down
462 changes: 0 additions & 462 deletions src/EditorFeatures/CSharpTest/Squiggles/ErrorSquiggleProducerTests.cs

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ public InlineDiagnosticsTaggerProvider(
_classificationTypeRegistryService = classificationTypeRegistryService;
}

protected sealed override bool SupportsDiagnosticMode(DiagnosticMode mode)
{
// We support inline diagnostics in both push and pull (since lsp doesn't support inline diagnostics yet).
return true;
}

protected sealed override bool IncludeDiagnostic(DiagnosticData diagnostic)
{
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ private async Task ProduceTagsAsync(
if (!_callback.IsEnabled)
return;

var diagnosticMode = GlobalOptions.GetDiagnosticMode();
if (!_callback.SupportsDiagnosticMode(diagnosticMode))
return;

var document = documentSpanToTag.Document;
if (document == null)
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ SingleDiagnosticKindPullTaggerProvider CreateDiagnosticsTaggerProvider(Diagnosti

protected abstract bool IsEnabled { get; }

protected abstract bool SupportsDiagnosticMode(DiagnosticMode mode);
protected abstract bool IncludeDiagnostic(DiagnosticData data);

protected abstract bool TagEquals(TTag tag1, TTag tag2);
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3ab3ca7

Please sign in to comment.