Skip to content

Commit

Permalink
Add DTS resource type.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Hoff <[email protected]>
  • Loading branch information
philliphoff committed Jan 10, 2025
1 parent a6ce3bb commit 019e8ac
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/docs/vscode-azureresources-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export declare enum AzExtResourceType {
DeviceIotHubs = "DeviceIotHubs",
DevTestLabs = "DevTestLabs",
Disks = "Disks",
DurableTaskScheduler = 'DurableTaskScheduler',
EventGridDomains = "EventGridDomains",
EventGridEventSubscriptions = "EventGridEventSubscriptions",
EventGridTopics = "EventGridTopics",
Expand Down
1 change: 1 addition & 0 deletions api/src/AzExtResourceType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export enum AzExtResourceType {
DeviceIotHubs = 'DeviceIotHubs',
DevTestLabs = 'DevTestLabs',
Disks = 'Disks',
DurableTaskScheduler = 'DurableTaskScheduler',
EventGridDomains = 'EventGridDomains',
EventGridEventSubscriptions = 'EventGridEventSubscriptions',
EventGridTopics = 'EventGridTopics',
Expand Down
1 change: 1 addition & 0 deletions api/src/getAzExtResourceType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const azureTypeToAzExtResourceTypeMap: Record<string, AzExtResourceType | undefi
'microsoft.dbformysql/servers': AzExtResourceType.MysqlServers,
'microsoft.devices/iothubs': AzExtResourceType.DeviceIotHubs,
'microsoft.devtestlab/labs': AzExtResourceType.DevTestLabs,
'microsoft.durabletask/schedulers': AzExtResourceType.DurableTaskScheduler,
'microsoft.eventgrid/domains': AzExtResourceType.EventGridDomains,
'microsoft.eventgrid/eventsubscriptions': AzExtResourceType.EventGridEventSubscriptions,
'microsoft.eventgrid/topics': AzExtResourceType.EventGridTopics,
Expand Down
30 changes: 30 additions & 0 deletions resources/azureIcons/DurableTaskScheduler.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/azureExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const azureExtensions: IAzExtMetadata[] = [
name: 'vscode-azurefunctions',
label: 'Functions',
resourceTypes: [
AzExtResourceType.DurableTaskScheduler,
AzExtResourceType.FunctionApp
],
tutorial: {
Expand Down Expand Up @@ -160,6 +161,7 @@ export const azureExtensions: IAzExtMetadata[] = [
];

export const legacyTypeMap: Partial<Record<AzExtResourceType, string>> = {
DurableTaskScheduler: 'microsoft.durabletask/schedulers',
FunctionApp: 'microsoft.web/functionapp',
AppServices: 'microsoft.web/sites',
StaticWebApps: 'microsoft.web/staticsites',
Expand Down
1 change: 1 addition & 0 deletions src/utils/azureUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const azExtDisplayInfo: Partial<Record<AzExtResourceType, AzExtResourceTypeDispl
ContainerAppsEnvironment: { displayName: localize('containerAppsEnv', 'Container Apps') },
ContainerRegistry: { displayName: localize('containerRegistry', 'Container registry') },
Disks: { displayName: localize('disks', 'Disks') },
DurableTaskScheduler: { displayName: localize('durableTaskScheduler', 'Durable Task Scheduler') },
FrontDoorAndCdnProfiles: { displayName: localize('frontDoorAndcdnProfiles', 'Front Door and CDN profiles') },
FunctionApp: { displayName: localize('functionApp', 'Function App') },
Images: { displayName: localize('images', 'Images') },
Expand Down

0 comments on commit 019e8ac

Please sign in to comment.