Skip to content

Using a subdirectory named 'tool' in test makes vscode freeze  #4809

@giggitygoat

Description

@giggitygoat

Describe the bug
Currently if you make a simple dummy test in a folder named tool it makes vscode freeze and unable to complete.

To Reproduce
Steps to reproduce the behavior:

  1. Create new flutter package project
  2. Create folder named tool under test
  3. Create new file named my_test.dart and insert:
import 'package:flutter_test/flutter_test.dart';

void main() {
  test('should expect null', () {
    expect(null, isNull);
  });
}
  1. Click the green arrow to run the test

Expected behavior
To execute the file as if it was in the root of the test folder.

Please complete the following information:

Dart Code extension: 3.74.0
Flutter extension: 3.74.0 (activated)

App: Visual Studio Code
App Host: desktop
Version: linux 1.82.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    in flutterRelates to running Flutter appsin testingRelates to test execution of Dart/Flutter tests for end usersis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions