Repository: Dart-Code/Dart-Code

Issue #3304: Dart extension activates for large workspaces that do not contain Dart projects
Created: 2021-04-26T23:17:41Z
Any time I try to rename a file from vs code file explorer, I get the message dialog shown above. The thing is, I'm working on a python project without any dart file and I wonder why dart should subscribe when I try to to rename files (not just .py files) in a python project. Regardless of the option I pick from the dialog though, the rename operation ends up successful, reloading does not help I eventually had to disable dart extension. it's even worse for a Java project I attempted with, get's stock at 'running file move participant.....'
Is this a bug ? See dart log below
!! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!

Dart Code extension: 3.21.1
Flutter extension: 3.21.0 (not activated)

App: Visual Studio Code
Version: 1.55.2
Platform: win

Workspace type: Unknown (Flutter SDK)
Analyzer type: DAS
Multi-root?: false

Dart SDK:
    Loc: C:\path\to\dart-sdk
    Ver: 2.12.2
Flutter SDK:
    Loc: C:\path\to\flutter
    Ver: 2.0.4

HTTP_PROXY: undefined
NO_PROXY: undefined

Logging Categories:
    General, Analyzer, CommandProcesses, VmService, DevTools, FlutterDaemon, FlutterRun, FlutterTest, PubTest, WebDaemon

Mon Apr 26 2021 [23:42:28 GMT+0100 (West Africa Standard Time)] Log file started
[11:42:47 PM] [Analyzer] [Info] ==> {"id":"8","method":"edit.getRefactoring","params":{"file":"C:\\path\to\\symmetricds_manager\\sdmanager\\core\\utils.py","kind":"MOVE_FILE","length":0,"offset":0,"options":{"newFile":"C:\\path\to\\symmetricds_manager\\sdmanager\\core\\sjdk.py"},"validateOnly":false},"clientRequestTime":1619476967005}
[11:42:47 PM] [Analyzer] [Info] <== {"id":"8","result":{"initialProblems":[{"severity":"FATAL","message":"Unable to create a refactoring"}],"optionsProblems":[],"finalProblems":[]}}
Mon Apr 26 2021 [23:42:52 GMT+0100 (West Africa Standard Time)] Log file ended

Duplicate issue #3351: The casing of the open workspace folder does not match the casing on disk; please re-open the folder using the File Open dialog.
Created: 2021-05-18T16:12:57Z
Describe the bug
Getting this in my notifications. I've hit this before, and it seems to be back.
The casing of the open workspace folder does not match the casing on disk; please re-open the folder using the File Open dialog. Expected C:\Users\Nolan\Projects\SystemFault but got C:\Users\Nolan\projects\systemfault
To Reproduce
Not entirely sure. Maybe;

On Windows, change to a directory with upper-case characters in its name, perhaps using lower-case characters in the cd invocation.
Run code ..

Expected behavior
Honestly, I'd expect nothing to happen since this isn't a Dart project at all.
Versions (please complete the following information):

VS Code version: 1.56.2
Dart extension version: 3.22.0
Dart/Flutter SDK version: 2.0.6

Closing comment (2021-05-21T16:22:43Z): Thanks! This is as I expected. workspaceContainsTimeout means VS Code timed out searching for those files in the workspace after 7 seconds and decided activate the extension just in case (rather than continue searching). I've raised this at  microsoft/vscode#73656 since it seems like extensions have no influence over this and it causes bad behaviour.
However - as part of #3304 we found a workaround that should improve this (we will only look for those files in the top few levels, rather than anywhere in the workspace - which reduces the amount of searching VS Code will do). That will ship in the next release (likely at the start of next month).
I'll close this as a dupe of #3304 but if you continue to see if after the next release, please do let me know. Thanks!