Skip to content

Commit f6cc4cb

Browse files
authored
Use SingleHost as default Netherite emulator string (#4530)
1 parent 8dc43ea commit f6cc4cb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/commands/appSettings/connectionSettings/eventHubs/EventHubsConnectionExecuteStep.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import { type ISubscriptionContext } from '@microsoft/vscode-azext-utils';
7-
import { ConnectionKey, ConnectionType, localEventHubsEmulatorConnectionRegExp, localEventHubsEmulatorConnectionStringDefault, type ConnectionKeyValues } from '../../../../constants';
7+
import { ConnectionKey, ConnectionType, localEventHubsEmulatorConnectionRegExp, localEventHubsEmulatorConnectionString, type ConnectionKeyValues } from '../../../../constants';
88
import { getLocalSettingsConnectionString } from '../../../../funcConfig/local.settings';
99
import { SetConnectionSettingStepBase } from '../SetConnectionSettingStepBase';
1010
import { getEventHubsConnectionString } from '../getLocalConnectionSetting';
@@ -22,7 +22,7 @@ export class EventHubsConnectionExecuteStep<T extends IEventHubsConnectionWizard
2222
if (currentConnection && localEventHubsEmulatorConnectionRegExp.test(currentConnection)) {
2323
return;
2424
}
25-
value = localEventHubsEmulatorConnectionStringDefault;
25+
value = localEventHubsEmulatorConnectionString;
2626
} else {
2727
value = (await getEventHubsConnectionString(<T & ISubscriptionContext>context)).connectionString;
2828
}

src/constants.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,9 @@ export const localhost: string = '127.0.0.1';
149149
export const tsDefaultOutDir: string = 'dist';
150150
export const tsConfigFileName: string = 'tsconfig.json';
151151

152-
export const localEventHubsEmulatorConnectionStringDefault: string = 'MemoryF';
153-
export const localEventHubsEmulatorConnectionStringAlternate: string = 'Memory';
154-
155152
export const localStorageEmulatorConnectionString: string = 'UseDevelopmentStorage=true';
156-
export const localEventHubsEmulatorConnectionRegExp: RegExp = new RegExp(`${localEventHubsEmulatorConnectionStringDefault}|${localEventHubsEmulatorConnectionStringAlternate}`);
153+
export const localEventHubsEmulatorConnectionString: string = 'SingleHost';
154+
export const localEventHubsEmulatorConnectionRegExp: RegExp = new RegExp(`${localEventHubsEmulatorConnectionString}|MemoryF|Memory`);
157155

158156
export const workerRuntimeKey: string = 'FUNCTIONS_WORKER_RUNTIME';
159157
export const workerRuntimeVersionKey: string = 'FUNCTIONS_WORKER_RUNTIME_VERSION';

0 commit comments

Comments
 (0)