Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/

import { type ISubscriptionContext } from '@microsoft/vscode-azext-utils';
import { ConnectionKey, ConnectionType, localEventHubsEmulatorConnectionRegExp, localEventHubsEmulatorConnectionStringDefault, type ConnectionKeyValues } from '../../../../constants';
import { ConnectionKey, ConnectionType, localEventHubsEmulatorConnectionRegExp, localEventHubsEmulatorConnectionString, type ConnectionKeyValues } from '../../../../constants';
import { getLocalSettingsConnectionString } from '../../../../funcConfig/local.settings';
import { SetConnectionSettingStepBase } from '../SetConnectionSettingStepBase';
import { getEventHubsConnectionString } from '../getLocalConnectionSetting';
Expand All @@ -22,7 +22,7 @@ export class EventHubsConnectionExecuteStep<T extends IEventHubsConnectionWizard
if (currentConnection && localEventHubsEmulatorConnectionRegExp.test(currentConnection)) {
return;
}
value = localEventHubsEmulatorConnectionStringDefault;
value = localEventHubsEmulatorConnectionString;
} else {
value = (await getEventHubsConnectionString(<T & ISubscriptionContext>context)).connectionString;
}
Expand Down
6 changes: 2 additions & 4 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,9 @@ export const localhost: string = '127.0.0.1';
export const tsDefaultOutDir: string = 'dist';
export const tsConfigFileName: string = 'tsconfig.json';

export const localEventHubsEmulatorConnectionStringDefault: string = 'MemoryF';
export const localEventHubsEmulatorConnectionStringAlternate: string = 'Memory';

export const localStorageEmulatorConnectionString: string = 'UseDevelopmentStorage=true';
export const localEventHubsEmulatorConnectionRegExp: RegExp = new RegExp(`${localEventHubsEmulatorConnectionStringDefault}|${localEventHubsEmulatorConnectionStringAlternate}`);
export const localEventHubsEmulatorConnectionString: string = 'SingleHost';
export const localEventHubsEmulatorConnectionRegExp: RegExp = new RegExp(`${localEventHubsEmulatorConnectionString}|MemoryF|Memory`);

export const workerRuntimeKey: string = 'FUNCTIONS_WORKER_RUNTIME';
export const workerRuntimeVersionKey: string = 'FUNCTIONS_WORKER_RUNTIME_VERSION';
Expand Down