remove advanced options for table designer and notebook Actions title (unnecessary in usage context)
This commit is contained in:
Родитель
2142c706b0
Коммит
e30aee5151
|
@ -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 non default options to end to let users know exact connection.
|
||||
let nonDefaultOptions = await azdata.connection.getEditorConnectionProfileTitle(context.connectionProfile, true);
|
||||
nonDefaultOptions = nonDefaultOptions.replace('(', '[').replace(')', ']');
|
||||
if (nonDefaultOptions !== '') {
|
||||
titleString += `${nonDefaultOptions}`;
|
||||
}
|
||||
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 non default options to end to let users know exact connection.
|
||||
let nonDefaultOptions = await azdata.connection.getEditorConnectionProfileTitle(context.connectionProfile, true);
|
||||
nonDefaultOptions = nonDefaultOptions.replace('(', '[').replace(')', ']');
|
||||
if (nonDefaultOptions !== '') {
|
||||
titleString += `${nonDefaultOptions}`;
|
||||
}
|
||||
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,
|
||||
|
|
|
@ -731,10 +731,7 @@ export class AttachToDropdown extends SelectBox {
|
|||
} else {
|
||||
let connections: string[] = [];
|
||||
if (model.context && model.context.title && (connProviderIds.includes(this.model.context.providerName))) {
|
||||
let textResult = model.context.title;
|
||||
let fullTitleText = this._connectionManagementService.getEditorConnectionProfileTitle(model.context);
|
||||
textResult = fullTitleText.length !== 0 ? fullTitleText : textResult;
|
||||
connections.push(textResult);
|
||||
connections.push(model.context.title);
|
||||
} else if (this._configurationService.getValue(saveConnectionNameConfigName) && model.savedConnectionName) {
|
||||
connections.push(model.savedConnectionName);
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче