Skip to content

操作 databases vs. quick-query: generated qlpack file depends on JavaScript, not 操作 library #4050

Description

@smowton

To reproduce:

Create any 操作 database (codeql database create -l actions ...)

Select the database in VSCode

Create a Quick Query

Observe that the qlpack.yml file created depends on javascript-all, and so the import actions line in the fresh query doesn't resolve.

Cause is https://github.com/github/vscode-codeql/blob/main/extensions/ql-vscode/src/databases/qlpack.ts#L28 matching qlpacks vs. dbschemes, and the 操作 extractor using the JavaScript dbscheme.

Possible solutions could include looking at the codeql-database.yml file, or having the 操作 extractor rename the dbscheme file after invoking the JS autobuilder such that the database can be distinguished from a JS database using the existing dbscheme name heuristic.

Metadata

Metadata

Assignees

No one assigned

    标签

    VSCodebugSomething isn't working

    Type

    No type

    项目

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions