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
- Create a Flutter project with
flutter_riverpod
- Configure
analysis_options.yaml as shown below
- Create a
ConsumerWidget
- Place cursor on the widget class name and press ⌘. (Quick Fix)
- No riverpod_lint assists appear (e.g., "Convert to ConsumerStatefulWidget" is missing)
- 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)
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_scopewarning appears with underline in the editorConsumerWidgetclass nameRelation to existing issues
I've reviewed the following related issues, but my situation is different:
custom_lintplugin system. In my case, ⌘. does show quick fixes for diagnostics, but assists/refactorings are missing entirely.custom_lint-based issue where editor diagnostics didn't appear at all. In my setup, diagnostics work fine — only assists are missing.Both issues were based on the older
custom_lintsystem. This issue is specific to theanalysis_server_plugin-based riverpod_lint 3.x.To Reproduce
flutter_riverpodanalysis_options.yamlas shown belowConsumerWidgetdart analyze— riverpod_lint warnings (e.g.,missing_provider_scope) are correctly reportedanalysis_options.yaml:
Expected behavior
Quick Fix (⌘.) should show riverpod_lint assists such as:
What I've tried
"dart.analysisServerAdditionalArgs": ["--enable-experiment=macros"]to VS Code settings.jsonNone of the above resolved the issue.
Environment