mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 03:28:33 -05:00
Update dacpac and schema compare extensions to not use deprecated workspace.rootPath (#7125)
This commit is contained in:
@@ -306,7 +306,7 @@ export class SchemaCompareDialog {
|
||||
|
||||
currentButton.onDidClick(async (click) => {
|
||||
// file browser should open where the current dacpac is or the appropriate default folder
|
||||
let rootPath = vscode.workspace.rootPath ? vscode.workspace.rootPath : os.homedir();
|
||||
let rootPath = vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders[0].name : os.homedir();
|
||||
let defaultUri = endpoint && endpoint.packageFilePath && existsSync(endpoint.packageFilePath) ? endpoint.packageFilePath : rootPath;
|
||||
|
||||
let fileUris = await vscode.window.showOpenDialog(
|
||||
|
||||
Reference in New Issue
Block a user