mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Port request for connection title removal (#23916)
* Port request of title generation removal * added fix to CMS * added updated mainthread * Revert "added updated mainthread" This reverts commit a5806555a17bb7495c5a3573a98bd36a0f361785. * Revert "added fix to CMS" This reverts commit 2b8c24f09e4d7eadfcd047bbc554285ebd9811bc. * Revert "Port request of title generation removal" This reverts commit e6a2302778c9fd580f1f3d6de72c5037c14d815b. * Remove/comment out connection title generation from all areas. (#23873) --------- Co-authored-by: Cheena Malhotra <13396919+cheenamalhotra@users.noreply.github.com>
This commit is contained in:
@@ -26,18 +26,11 @@ export function registerTableDesignerCommands(appContext: AppContext) {
|
||||
if (!connectionString) {
|
||||
throw new Error(FailedToGetConnectionStringError);
|
||||
}
|
||||
let titleString = `${context.connectionProfile!.serverName} - ${context.connectionProfile!.databaseName} - ${NewTableText}`;
|
||||
// append distinguishing options to end to let users know exact connection.
|
||||
let distinguishingOptions = await azdata.connection.getEditorConnectionProfileTitle(context.connectionProfile, true);
|
||||
if (distinguishingOptions !== '') {
|
||||
distinguishingOptions = distinguishingOptions.replace('(', '[').replace(')', ']');
|
||||
titleString += `${distinguishingOptions}`;
|
||||
}
|
||||
const tableIcon = context.nodeInfo!.nodeSubType as azdata.designers.TableIcon;
|
||||
const telemetryInfo = await getTelemetryInfo(context, tableIcon);
|
||||
await azdata.designers.openTableDesigner(sqlProviderName, {
|
||||
title: NewTableText,
|
||||
tooltip: titleString,
|
||||
tooltip: `${context.connectionProfile!.serverName} - ${context.connectionProfile!.databaseName} - ${NewTableText}`,
|
||||
server: context.connectionProfile!.serverName,
|
||||
database: context.connectionProfile!.databaseName,
|
||||
isNewTable: true,
|
||||
@@ -63,18 +56,11 @@ export function registerTableDesignerCommands(appContext: AppContext) {
|
||||
if (!connectionString) {
|
||||
throw new Error(FailedToGetConnectionStringError);
|
||||
}
|
||||
let titleString = `${server} - ${database} - ${schema}.${name}`;
|
||||
// append distinguishing options to end to let users know exact connection.
|
||||
let distinguishingOptions = await azdata.connection.getEditorConnectionProfileTitle(context.connectionProfile, true);
|
||||
if (distinguishingOptions !== '') {
|
||||
distinguishingOptions = distinguishingOptions.replace('(', '[').replace(')', ']');
|
||||
titleString += `${distinguishingOptions}`;
|
||||
}
|
||||
const tableIcon = context.nodeInfo!.nodeSubType as azdata.designers.TableIcon;
|
||||
const telemetryInfo = await getTelemetryInfo(context, tableIcon);
|
||||
await azdata.designers.openTableDesigner(sqlProviderName, {
|
||||
title: `${schema}.${name}`,
|
||||
tooltip: titleString,
|
||||
tooltip: `${server} - ${database} - ${schema}.${name}`,
|
||||
server: server,
|
||||
database: database,
|
||||
isNewTable: false,
|
||||
|
||||
Reference in New Issue
Block a user