mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-14 18:46:34 -05:00
Update dacpac and schema compare extensions to not use deprecated workspace.rootPath (#7125)
This commit is contained in:
@@ -182,7 +182,7 @@ export abstract class DacFxConfigPage extends BasePage {
|
||||
if (this.fileTextBox.value && path.dirname(this.fileTextBox.value)) {
|
||||
return path.dirname(this.fileTextBox.value);
|
||||
} else { // otherwise use the folder open in the Explorer or the home directory
|
||||
return vscode.workspace.rootPath ? vscode.workspace.rootPath : os.homedir();
|
||||
return vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders[0].name : os.homedir();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user