FMorschel · GitHub

Describe the bug
As I have already created an issue here which directed me to create this one.

If there is a Dart string interpolation that shows an explicit map/set.

The first opening bracket is showing red and the second to last one (the last one on line 3) is showing blank.

This also happens (without the need for a restart) if you call a method in the explicit map:
Visual bug
And even removing the call for the method does not restore the previous colours.

To Reproduce

  • Clean VSCode install (or at least uninstall dart-code.dart-code it and restart vscode)
  • Install the latest pre-release (v3.87.20240402) or the latest release (v3.86.0)
  • Add this to a .dart file:
class A {
  @override
  String toString() => '${ {} }';
}

Expected behavior
Even after restarting vscode there should be no visual bugs with rainbow brackets.

Please complete the following information:

Release

Workspace Environment
Dart Code extension: 3.86.0
App: Visual Studio Code - Insiders
App Host: desktop
Version: win 1.89.0-insider
Workspace type: Dart (LSP)
Dart (3.3.3): C:\Users\usuario\.puro\shared\caches\e76c956498841e1ab458577d3892003e553e4f3c\dart-sdk
Flutter (undefined): C:\Users\usuario\.puro\envs\stable\flutter (No device)
Output from 'dart info'

C:\Users\usuario\.puro\shared\caches\e76c956498841e1ab458577d3892003e553e4f3c\dart-sdk\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.3.3 (stable) (Tue Mar 26 14:21:33 2024 +0000) on "windows_x64"
  • on windows / "Windows 10 Pro" 10.0 (Build 22631)
  • locale is en-GB

Process info

Memory CPU Elapsed time Command line
331 MB -- dart.exe
96 MB -- dart.exe

Pre-release

Workspace Environment
Dart Code extension: 3.87.20240402
App: Visual Studio Code - Insiders
App Host: desktop
Version: win 1.89.0-insider
Workspace type: Dart (LSP)
Dart (3.3.3): C:\Users\usuario\.puro\shared\caches\e76c956498841e1ab458577d3892003e553e4f3c\dart-sdk
Flutter (undefined): C:\Users\usuario\.puro\envs\stable\flutter (No device)
Output from 'dart info'

C:\Users\usuario\.puro\shared\caches\e76c956498841e1ab458577d3892003e553e4f3c\dart-sdk\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.3.3 (stable) (Tue Mar 26 14:21:33 2024 +0000) on "windows_x64"
  • on windows / "Windows 10 Pro" 10.0 (Build 22631)
  • locale is en-GB

Process info

Memory CPU Elapsed time Command line
243 MB -- dart.exe
96 MB -- dart.exe

Read the original on github.com ↗