Support all default query suites and resolve them
This commit is contained in:
parent
6abacdb184
commit
f7fbaa019f
3 changed files with 20 additions and 5 deletions
|
|
@ -561,9 +561,17 @@ extensions:
|
|||
return diffRangeDir;
|
||||
}
|
||||
|
||||
const defaultSuites: Set<string> = new Set([
|
||||
"security-experimental",
|
||||
"security-extended",
|
||||
"security-and-quality",
|
||||
"code-quality",
|
||||
"code-scanning",
|
||||
]);
|
||||
|
||||
function resolveQuerySuiteAlias(language: Language, query: string): string {
|
||||
if (query === "code-quality") {
|
||||
return `${language}-code-quality.qls`;
|
||||
if (defaultSuites.has(query)) {
|
||||
return `${language}-${query}.qls`;
|
||||
}
|
||||
|
||||
return query;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue