FMorschel · GitHub

Describe the bug
Selecting the name of a record field highlights everything matching the name.

Dart-Code-Log-2024-09-02 08-36-25.txt

To Reproduce
Steps to reproduce the behavior:

  1. Open a new project
  2. Add the repro:
void foo(int variable) {
  var record = (variable: variable,);
}
  1. Select the parameter variable and see it highlighting itself and its use (the last variable on line 2)
  2. Select the record name variable and see every variable highlighted.

Expected behavior
I expect the only highlight to be the record name in the second case.

Please complete the following information:

Workspace Environment
Dart Code extension: 3.99.20240930
Flutter extension: 3.99.20240930 (activated)
App: Visual Studio Code
App Host: desktop
Version: win 1.93.1
Workspace type: Dart (LSP)
Workspace name: bug
Dart (3.6.0-edge.c3b2672a19ef46317e8d71d73e7094eb4c5bca1a): C:\Users\felip_0vh5fa6\dart
Flutter (3.24.3): C:\Users\felip_0vh5fa6\.puro\envs\stable\flutter (No device)
Output from 'dart info'

C:\Users\felip_0vh5fa6\dart\bin\dart.exe info

If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.

General info

  • Dart 3.6.0-edge.c3b2672a19ef46317e8d71d73e7094eb4c5bca1a (main) (Mon Sep 23 21:51:31 2024 +0000) on "windows_x64"
  • on windows / "Windows 10 Pro" 10.0 (Build 22631)
  • locale is pt-BR

Project info

  • sdk constraint: '>=3.3.0 <4.0.0'
  • dependencies: collection, dart_either, either_dart, equatable, path, test, time
  • dev_dependencies: dart_code_metrics, lints

Process info

Memory CPU Elapsed time Command line
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe

Read the original on github.com ↗