mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 17:22:29 -05:00
Aligns how Import and New project flows work (#11184)
* Slight import refactor * Test updates * Adds test, sets script name for File extractType to projectName * generating correct folder list * Correctly setting serverId for Imports started from Object Explorer * Adding regression test * uncommented test check
This commit is contained in:
@@ -37,6 +37,16 @@ export class Project {
|
||||
this.projectFileName = path.basename(projectFilePath, '.sqlproj');
|
||||
}
|
||||
|
||||
/**
|
||||
* Open and load a .sqlproj file
|
||||
*/
|
||||
public static async openProject(projectFilePath: string): Promise<Project> {
|
||||
const proj = new Project(projectFilePath);
|
||||
await proj.readProjFile();
|
||||
|
||||
return proj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads the project setting and contents from the file
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user