mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
filter data-workspace projects by ext (#14354)
* add filtering by project extension * Fix tests * addressing comments * convert to lowercase
This commit is contained in:
@@ -560,7 +560,7 @@ export class ProjectsController {
|
||||
if ((<IProjectReferenceSettings>settings).projectName !== undefined) {
|
||||
// get project path and guid
|
||||
const projectReferenceSettings = settings as IProjectReferenceSettings;
|
||||
const workspaceProjects = await utils.getSqlProjectsInWorkspace();
|
||||
const workspaceProjects = utils.getSqlProjectsInWorkspace();
|
||||
const referencedProject = await Project.openProject(workspaceProjects.filter(p => path.parse(p.fsPath).name === projectReferenceSettings.projectName)[0].fsPath);
|
||||
const relativePath = path.relative(project.projectFolderPath, referencedProject?.projectFilePath!);
|
||||
projectReferenceSettings.projectRelativePath = vscode.Uri.file(relativePath);
|
||||
|
||||
Reference in New Issue
Block a user