Skip to content

Dart quick fix of moving generated function to another file should move in the "part 'file.g.dart' " as well #55097

Open
@github-worst-company

Description

@github-worst-company

This tracker is for issues related to:

  • Dart analyzer and linter

Clicking on quick fix then move to file only moves the required imports but doesn't move part 'application_support_directory_provider.g.dart'
quickfix

Of which the imports and part looks like after moving file (the image has part added manually):
Current behaviour:

import 'dart:io';
import 'package:riverpod_annotation/riverpod_annotation.dart';

Expected behaviour:

import 'dart:io';
import 'package:riverpod_annotation/riverpod_annotation.dart';
+part 'application_support_directory_provider.g.dart';
  • Dart 3.4.0-99.1.beta (beta) (Thu Feb 1 13:40:17 2024 -0800) on "windows_x64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixesdevexp-refactoringIssues with analysis server refactoringstype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions