mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -05:00
disable table renaming for sql proj (#1526)
This commit is contained in:
@@ -757,6 +757,11 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner
|
|||||||
var tableDesigner = this.GetTableDesigner(tableInfo);
|
var tableDesigner = this.GetTableDesigner(tableInfo);
|
||||||
var table = tableDesigner.TableViewModel;
|
var table = tableDesigner.TableViewModel;
|
||||||
var tableViewModel = new TableViewModel();
|
var tableViewModel = new TableViewModel();
|
||||||
|
// Disable table renaming for sql project scenario until this issue is fixed: https://github.com/microsoft/azuredatastudio/issues/19557
|
||||||
|
var enableTableRenaming = tableInfo.ProjectFilePath == null;
|
||||||
|
tableViewModel.Name.Enabled = enableTableRenaming;
|
||||||
|
tableViewModel.Schema.Enabled = enableTableRenaming;
|
||||||
|
|
||||||
tableViewModel.Name.Value = table.Name;
|
tableViewModel.Name.Value = table.Name;
|
||||||
tableViewModel.Schema.Value = table.Schema;
|
tableViewModel.Schema.Value = table.Schema;
|
||||||
tableViewModel.Schema.Values = tableDesigner.Schemas.ToList();
|
tableViewModel.Schema.Values = tableDesigner.Schemas.ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user