[analysis_server] Tweak "ignore diagnostic" text for file
This makes the text more different (and longer) than the "ignore for line" so at a glance it doesn't look like the items are duplicated (see https://github.com/dart-lang/sdk/issues/51959#issuecomment-1571536150).
Change-Id: Ib752c9a222bf82b1af80ab7060a26208b0bc9201
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/306940
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/analysis_server/lib/src/services/correction/fix.dart b/pkg/analysis_server/lib/src/services/correction/fix.dart
index 4b61815..1643b50 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix.dart
@@ -778,7 +778,7 @@
static const IGNORE_ERROR_FILE = FixKind(
'dart.fix.ignore.file',
DartFixKindPriority.IGNORE - 1,
- "Ignore '{0}' for this file",
+ "Ignore '{0}' for the whole file",
);
static const IMPORT_ASYNC = FixKind(
'dart.fix.import.async',
diff --git a/pkg/analysis_server/test/lsp/code_actions_fixes_test.dart b/pkg/analysis_server/test/lsp/code_actions_fixes_test.dart
index 13dc7de..08c778f 100644
--- a/pkg/analysis_server/test/lsp/code_actions_fixes_test.dart
+++ b/pkg/analysis_server/test/lsp/code_actions_fixes_test.dart
@@ -572,7 +572,7 @@
final fixAction = findEditAction(
codeActions,
CodeActionKind('quickfix.ignore.file'),
- "Ignore 'unused_import' for this file")!;
+ "Ignore 'unused_import' for the whole file")!;
// Ensure applying the changes will give us the expected content.
final contents = {