-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Description
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:
- Open a new project
- Add the repro:
void foo(int variable) {
var record = (variable: variable,);
}- Select the parameter
variableand see it highlighting itself and its use (the lastvariableon line 2) - Select the record name
variableand see everyvariablehighlighted.
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 |
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available