Skip to content

Add a when clause to the contributed explorer view such that it is only activated when the workspace has a package.json file #117950

@tristan957

Description

@tristan957

As you can see below, I don't have a package.json file in my workspace. I am working in a Python project. This extension is still contributing its view however.

image

Would it be possible to have the extension only contribute its view when a package.json is found at the root of the workspace?

This feature is talked about here microsoft/vscode-java-test#793 (comment).

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsiderstasksTask system issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions