mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-26 09:35:38 -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 table = tableDesigner.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.Schema.Value = table.Schema;
|
||||
tableViewModel.Schema.Values = tableDesigner.Schemas.ToList();
|
||||
|
||||
Reference in New Issue
Block a user