mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 17:52:34 -05:00
Remove/comment out connection title generation from all areas. (#23873)
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