Skip to content

riverpod_lint 3.x (analysis_server_plugin): Assists not appearing in VS Code while diagnostics and quick fixes work fine #4719

@wondde

Description

@wondde

Describe the bug

With riverpod_lint 3.1.3 (analysis_server_plugin based), diagnostics and quick fixes work correctly in VS Code, but assists do not appear.

For example:

  • missing_provider_scope warning appears with underline in the editor
  • ✅ Quick Fix for the warning (e.g., "Wrap with ProviderScope") works via ⌘.
  • ❌ Assists like "Convert to ConsumerStatefulWidget" do not appear when pressing ⌘. on a ConsumerWidget class name

Relation to existing issues

I've reviewed the following related issues, but my situation is different:

Both issues were based on the older custom_lint system. This issue is specific to the analysis_server_plugin-based riverpod_lint 3.x.

To Reproduce

  1. Create a Flutter project with flutter_riverpod
  2. Configure analysis_options.yaml as shown below
  3. Create a ConsumerWidget
  4. Place cursor on the widget class name and press ⌘. (Quick Fix)
  5. No riverpod_lint assists appear (e.g., "Convert to ConsumerStatefulWidget" is missing)
  6. Run dart analyze — riverpod_lint warnings (e.g., missing_provider_scope) are correctly reported

analysis_options.yaml:

include: package:flutter_lints/flutter.yaml
analyzer:
  plugins:
    - riverpod_lint
plugins:
  riverpod_lint: 3.1.3
linter:
  rules:

Expected behavior

Quick Fix (⌘.) should show riverpod_lint assists such as:

  • Convert to ConsumerStatefulWidget
  • Convert to ConsumerWidget
  • Wrap with Consumer
  • Wrap with ProviderScope

What I've tried

  • Restarting VS Code
  • "Dart: Restart Analysis Server" from Command Palette
  • Adding "dart.analysisServerAdditionalArgs": ["--enable-experiment=macros"] to VS Code settings.json

None of the above resolved the issue.

Environment

Flutter 3.38.8 • channel stable
Framework • revision bd7a4a6b55 (2026-01-26)
Tools • Dart 3.10.7 • DevTools 2.51.1
  • IDE: VS Code (Dart extension v3.130.1)
  • OS: macOS (Apple Silicon)
  • riverpod_lint: 3.1.3 (analysis_server_plugin based)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions