Skip to content

Do not activate extension with workspaceContains always after installing #75284

@DanTup

Description

@DanTup

I had a report of strange behaviour when installed the Flutter extension - it prompts you to install a Dart SDK (when you probably want to use Flutter, not Dart). It seems like installing the Flutter extension is activating the Dart extension (it does depend on it) even though no activation requirements for either extension are met, and the reason in the log is incorrect ("workspaceContains:**/pubspec.yaml").

Here's what I did:

  • Open VS Code - ensure there is no open workspace/folder
  • Install the Flutter extension (which will install the Dart extension)
  • Note the Dart extension is activated, and the extension host log lists:
[2019-06-11 17:54:40.902] [exthost] [info] eager extensions activated
[2019-06-11 17:54:53.239] [exthost] [info] ExtensionService#_doActivateExtension Dart-Code.dart-code {"startup":false,"activationEvent":"workspaceContains:**/pubspec.yaml"}
[2019-06-11 17:54:53.240] [exthost] [info] ExtensionService#loadCommonJSModule /Users/dantup/.vscode/extensions/dart-code.dart-code-3.1.0/out/src/extension

Here's a screenshot showing I don't have a folder open with a pubspec.yaml in it:

Screenshot 2019-06-11 at 5 57 54 pm

Is this expected? Can I stop it?

Metadata

Metadata

Assignees

Labels

extension-hostExtension host issuesfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions