Add icons for some quickpick items (#16939)

This commit is contained in:
Charles Gagnon
2021-08-30 15:32:20 -07:00
committed by GitHub
parent 05d8ad4811
commit 00da5fdcb3
6 changed files with 90 additions and 33 deletions

View File

@@ -616,8 +616,9 @@ export class AddDatabaseReferenceDialog {
}
export function getSystemDbOptions(project: Project): string[] {
const projectTargetVersion = project.getProjectTargetVersion().toLowerCase();
// only master is a valid system db reference for projects targeting Azure and DW
if (project.getProjectTargetVersion().toLowerCase().includes('azure') || project.getProjectTargetVersion().toLowerCase().includes('dw')) {
if (projectTargetVersion.includes('azure') || projectTargetVersion.includes('dw')) {
return [constants.master];
}
return [constants.master, constants.msdb];