mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
Table Designer - Save Changes feature and Editor related features (#17335)
* table designer add/remove row support * save changes and editor support * address comments * fix build error * including missing change * lower case request name
This commit is contained in:
@@ -900,6 +900,10 @@ export class ExtHostDataProtocol extends ExtHostDataProtocolShape {
|
||||
return this._resolveProvider<azdata.designers.TableDesignerProvider>(handle).processTableEdit(table, data, edit);
|
||||
}
|
||||
|
||||
public override $saveTable(handle, table: azdata.designers.TableInfo, data: azdata.designers.DesignerData): Thenable<void> {
|
||||
return this._resolveProvider<azdata.designers.TableDesignerProvider>(handle).saveTable(table, data);
|
||||
}
|
||||
|
||||
public override $openTableDesigner(providerId: string, tableInfo: azdata.designers.TableInfo): Promise<void> {
|
||||
this._proxy.$openTableDesigner(providerId, tableInfo);
|
||||
return Promise.resolve();
|
||||
|
||||
@@ -537,6 +537,11 @@ export abstract class ExtHostDataProtocolShape {
|
||||
*/
|
||||
$processTableDesignerEdit(handle, table: azdata.designers.TableInfo, data: azdata.designers.DesignerData, edit: azdata.designers.DesignerEdit): Thenable<azdata.designers.DesignerEditResult> { throw ni(); }
|
||||
|
||||
/**
|
||||
* Process the table edit.
|
||||
*/
|
||||
$saveTable(handle, table: azdata.designers.TableInfo, data: azdata.designers.DesignerData): Thenable<void> { throw ni(); }
|
||||
|
||||
/**
|
||||
* Open a new instance of table designer.
|
||||
*/
|
||||
|
||||
@@ -921,7 +921,8 @@ export namespace designers {
|
||||
Type = 'type',
|
||||
AllowNulls = 'allowNulls',
|
||||
DefaultValue = 'defaultValue',
|
||||
Length = 'length'
|
||||
Length = 'length',
|
||||
IsPrimaryKey = 'isPrimaryKey'
|
||||
}
|
||||
|
||||
export enum DesignerEditType {
|
||||
|
||||
Reference in New Issue
Block a user