Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CTRL + Click part of 'file.dart'; directive doesn't work without part directive #56541

Open
Tracked by #56203
FMorschel opened this issue Aug 21, 2024 · 2 comments
Open
Tracked by #56203
Labels
analyzer-server analyzer-ux area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@FMorschel
Copy link
Contributor

From Dart-Code/Dart-Code#5221:

Describe the bug
CTRL + Click part of 'file.dart'; directive doesn't work without part directive.

To Reproduce
Steps to reproduce the behavior:

  1. Run dart create bug
  2. Replace the content of bin/bug.dart with:
part 'foo.dart';
  1. Hold CTRL + Click over foo.dart or use the assist to create the new file
  2. Manually create a new file under bin called bar.dart
  3. Add the following to inside of the file:
part of 'bug.dart';

Expected behavior
Currently, if you open foo.dart and CTRL + Click the bug.dart string, it will take you (open) that file.
If you do the same under bar.dart it will not do anything.

It should do the same as the other CTRL + Click actions.

@dart-github-bot
Copy link
Collaborator

Summary: The "CTRL + Click" functionality on a part of directive doesn't work when the corresponding part directive is missing. This prevents users from easily navigating between files using the feature.

@dart-github-bot dart-github-bot added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Aug 21, 2024
@bwilkerson
Copy link
Member

This will likely be impacted by the enhanced-parts support, so any work on this issue should be coordinated with that effort or postponed until the feature is implemented.

@devoncarew devoncarew removed the triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. label Aug 22, 2024
@srawlins srawlins added analyzer-server analyzer-ux P3 A lower priority bug or feature request labels Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-server analyzer-ux area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

5 participants