mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Load all data workspace projects directly from workspace (#15921)
* Load all projects directly from workspace * fixes * Remove relativity and fix tests * fix compile * PR comments * remove unused * distro
This commit is contained in:
@@ -241,7 +241,7 @@ export async function getSqlProjectFilesInFolder(folderPath: string): Promise<st
|
||||
/**
|
||||
* Get all the projects in the workspace that are sqlproj
|
||||
*/
|
||||
export function getSqlProjectsInWorkspace(): vscode.Uri[] {
|
||||
export function getSqlProjectsInWorkspace(): Promise<vscode.Uri[]> {
|
||||
const api = getDataWorkspaceExtensionApi();
|
||||
return api.getProjectsInWorkspace(constants.sqlprojExtension);
|
||||
}
|
||||
@@ -251,13 +251,6 @@ export function getDataWorkspaceExtensionApi(): dataworkspace.IExtension {
|
||||
return extension.exports;
|
||||
}
|
||||
|
||||
/**
|
||||
* if the current workspace is untitled, the returned URI of vscode.workspace.workspaceFile will use the `untitled` scheme
|
||||
*/
|
||||
export function isCurrentWorkspaceUntitled(): boolean {
|
||||
return !!vscode.workspace.workspaceFile && vscode.workspace.workspaceFile.scheme.toLowerCase() === 'untitled';
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns the default deployment options from DacFx
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user