Skip to content

Hide empty test directories in QL test view #269

Closed
@jcreedcmu

Description

@jcreedcmu

Steps to reproduce:

Open a new workspace folder with qlpack.yml file like

name: user/my-custom-queries
version: 1.0.0
libraryPathDependencies: ["codeql-cpp"]  

Do Add workspace folder and choose the top-level ql library directory. Select any cpp database. Run command CodeQL: Quick Query to create a quick query buffer, but you needn't edit it or run it. Go to the test panel.

Expect: just one top-level directory of tests, for ql.
Actual: three top-level directories, one for ql, one for the original workspace folder, one for Quick Query's synthetic directory.
image

Alternatively, maybe we can make a special case to hide Quick Query since it will never have qltest files, and leave the external-to-ql workspace folder as visible but empty, since maybe the user might put qltest files there, in which case it would be visible and nonempty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions