diff --git a/extensions/arc/src/localizedConstants.ts b/extensions/arc/src/localizedConstants.ts index 23de244e24..6eb8d87d82 100644 --- a/extensions/arc/src/localizedConstants.ts +++ b/extensions/arc/src/localizedConstants.ts @@ -57,7 +57,6 @@ export const name = localize('arc.name', "Name"); export const type = localize('arc.type', "Type"); export const status = localize('arc.status', "Status"); export const miaaAdmin = localize('arc.miaaAdmin', "Managed instance admin"); -export const controllerEndpoint = localize('arc.controllerEndpoint', "Controller endpoint"); export const extensionName = localize('arc.extensionName', "Extension name"); export const extensionsDescription = localize('arc.extensionsDescription', "PostgreSQL provides the ability to extend the functionality of your database by using extensions. Extensions allow for bundling multiple related SQL objects together in a single package that can be loaded or removed from your database with a single command. After being loaded in the database, extensions can function like built-in features."); export const extensionsFunction = localize('arc.extensionsFunction', "Some extensions must be loaded into PostgreSQL at startup time before they can be used. These preloaded extensions can be viewed and edited below."); diff --git a/extensions/arc/src/ui/dashboards/controller/controllerDashboardOverviewPage.ts b/extensions/arc/src/ui/dashboards/controller/controllerDashboardOverviewPage.ts index c28015a864..b48d1b23e9 100644 --- a/extensions/arc/src/ui/dashboards/controller/controllerDashboardOverviewPage.ts +++ b/extensions/arc/src/ui/dashboards/controller/controllerDashboardOverviewPage.ts @@ -8,7 +8,7 @@ import * as azdata from 'azdata'; import * as azurecore from 'azurecore'; import * as vscode from 'vscode'; import { getConnectionModeDisplayText, getResourceTypeIcon, resourceTypeToDisplayName } from '../../../common/utils'; -import { cssStyles, Endpoints, IconPathHelper, controllerTroubleshootDocsUrl, iconSize } from '../../../constants'; +import { cssStyles, IconPathHelper, controllerTroubleshootDocsUrl, iconSize } from '../../../constants'; import * as loc from '../../../localizedConstants'; import { ControllerModel } from '../../../models/controllerModel'; import { DashboardPage } from '../../components/dashboardPage'; @@ -30,7 +30,6 @@ export class ControllerDashboardOverviewPage extends DashboardPage { resourceGroupName: '-', location: '-', subscriptionId: '-', - controllerEndpoint: '-', connectionMode: '-', instanceNamespace: '-', }; @@ -41,8 +40,7 @@ export class ControllerDashboardOverviewPage extends DashboardPage { this._azurecoreApi = vscode.extensions.getExtension(azurecore.extension.name)?.exports; this.disposables.push( - this._controllerModel.onRegistrationsUpdated(() => this.eventuallyRunOnInitialized(() => this.handleRegistrationsUpdated())), - this._controllerModel.onEndpointsUpdated(() => this.eventuallyRunOnInitialized(() => this.handleEndpointsUpdated()))); + this._controllerModel.onRegistrationsUpdated(() => this.eventuallyRunOnInitialized(() => this.handleRegistrationsUpdated()))); } public get title(): string { @@ -107,7 +105,6 @@ export class ControllerDashboardOverviewPage extends DashboardPage { // Update loaded components with data this.handleRegistrationsUpdated(); - this.handleEndpointsUpdated(); // Assign the loading component after it has data this._propertiesLoadingComponent.component = this._propertiesContainer; @@ -259,12 +256,6 @@ export class ControllerDashboardOverviewPage extends DashboardPage { this._arcResourcesLoadingComponent.loading = !this._controllerModel.registrationsLastUpdated; } - private handleEndpointsUpdated(): void { - const controllerEndpoint = this._controllerModel.getEndpoint(Endpoints.controller); - this.controllerProperties.controllerEndpoint = controllerEndpoint?.endpoint || this.controllerProperties.controllerEndpoint; - this.refreshDisplayedProperties(); - } - private refreshDisplayedProperties(): void { this._propertiesContainer.propertyItems = [ { @@ -287,10 +278,6 @@ export class ControllerDashboardOverviewPage extends DashboardPage { displayName: loc.type, value: loc.dataControllersType }, - { - displayName: loc.controllerEndpoint, - value: this.controllerProperties.controllerEndpoint - }, { displayName: loc.connectionMode, value: this.controllerProperties.connectionMode