Skip to content

Commit bc90b46

Browse files
authored
Remove emulator preference caching behavior per session (#4626)
1 parent 453c4a8 commit bc90b46

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/debug/storageProviders/validateDTSConnectionPreDebug.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ import { CodeAction, ConnectionType } from "../../constants";
1111
import { localize } from "../../localize";
1212
import { requestUtils } from "../../utils/requestUtils";
1313

14-
// If the user previously chose to debug using the emulator, leverage that preference for the remaining VS Code session
15-
let useDTSEmulator: boolean;
16-
1714
export async function validateDTSConnectionPreDebug(context: IActionContext, projectPath: string): Promise<void> {
1815
const projectPathContext = Object.assign(context, { projectPath });
1916
const { dtsConnectionKey, dtsHubConnectionKey } = await getDTSSettingsKeys(projectPathContext) ?? {};
@@ -32,7 +29,6 @@ export async function validateDTSConnectionPreDebug(context: IActionContext, pro
3229
const wizardContext: IDTSConnectionWizardContext = Object.assign(context, {
3330
projectPath,
3431
action: CodeAction.Debug,
35-
dtsConnectionType: useDTSEmulator ? ConnectionType.Emulator : undefined,
3632
newDTSConnectionSettingKey: dtsConnectionKey,
3733
newDTSHubConnectionSettingKey: dtsHubConnectionKey,
3834
newDTSConnectionSettingValue: isAliveDTSConnection ? dtsConnection : undefined,
@@ -49,8 +45,6 @@ export async function validateDTSConnectionPreDebug(context: IActionContext, pro
4945
if (wizardContext.dtsConnectionType) {
5046
await wizard.execute();
5147
}
52-
53-
useDTSEmulator = wizardContext.dtsConnectionType === ConnectionType.Emulator;
5448
}
5549

5650
/**

0 commit comments

Comments
 (0)