Skip to content

MCP Server results in extension always activating in all workspaces (even empty ones) #266221

@DanTup

Description

@DanTup

Since the latest update, the Dart extension is being activated on empty workspaces unexpectedly.

In the logs I see:

2025-09-11 17:30:17.502 [info] ExtensionService#_doActivateExtension Dart-Code.dart-code, startup: false, activationEvent: 'onMcpCollection:dart-sdk-mcp-servers'

We do have mcpServerDefinitionProviders listed in the package.json (and register an MCP server upon activation), but it doesn't make sense that we are now always activated. This seems to undermine the activationEvents that allows us to not be activated except for specific project types (and means that we may spawn Dart-related background processes in non-Dart workspaces).

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions