mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
table designer improvements (#18206)
* new table experience * new table info for existing table * allow delete confirmation * fix editor lock isue * vbump sts * PR feedback
This commit is contained in:
@@ -1056,7 +1056,7 @@ export namespace ProcessTableDesignerEditRequest {
|
||||
}
|
||||
|
||||
export namespace PublishTableDesignerChangesRequest {
|
||||
export const type = new RequestType<azdata.designers.TableInfo, void, void, void>('tabledesigner/publish');
|
||||
export const type = new RequestType<azdata.designers.TableInfo, azdata.designers.PublishChangesResult, void, void>('tabledesigner/publish');
|
||||
}
|
||||
|
||||
export namespace TableDesignerGenerateScriptRequest {
|
||||
|
||||
@@ -1131,7 +1131,7 @@ export class TableDesignerFeature extends SqlOpsFeature<undefined> {
|
||||
}
|
||||
};
|
||||
|
||||
const publishChanges = (tableInfo: azdata.designers.TableInfo): Thenable<void> => {
|
||||
const publishChanges = (tableInfo: azdata.designers.TableInfo): Thenable<azdata.designers.PublishChangesResult> => {
|
||||
try {
|
||||
return client.sendRequest(contracts.PublishTableDesignerChangesRequest.type, tableInfo);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ export function registerTableDesignerCommands(appContext: AppContext) {
|
||||
const schema = context.nodeInfo.metadata.schema;
|
||||
const name = context.nodeInfo.metadata.name;
|
||||
const connectionString = await azdata.connection.getConnectionString(context.connectionProfile.id, true);
|
||||
const connectionUri = await azdata.connection.getUriForConnection(context.connectionProfile.id);
|
||||
const serverInfo = await azdata.connection.getServerInfo(context.connectionProfile.id);
|
||||
let telemetryInfo: ITelemetryEventProperties = {};
|
||||
telemetryInfo = Telemetry.fillServerInfo(telemetryInfo, serverInfo);
|
||||
@@ -41,7 +40,7 @@ export function registerTableDesignerCommands(appContext: AppContext) {
|
||||
isNewTable: false,
|
||||
name: name,
|
||||
schema: schema,
|
||||
id: `${connectionUri}|${database}|${schema}|${name}`,
|
||||
id: `${connectionString}|${database}|${schema}|${name}`,
|
||||
connectionString: connectionString
|
||||
}, telemetryInfo);
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user