Skip to content

Report error when choosing a folder that isn't a database. #300

Closed
@jcreedcmu

Description

@jcreedcmu

To Reproduce
Go to the explorer and right-click on a folder that is not a database, and choose CodeQL: Set Current Database. Nothing happens.

Expected behavior
There should be a message communicating to the user that this isn't a database.

Additional context
Making the context menu only appear when the directory is a database in the first place would be desirable, but I don't know if it's possible. The current "when" condition for the command is
"when": "resourceScheme == codeql-zip-archive || explorerResourceIsFolder" and I can't find any refinements of explorerResourceIsFolder.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions