Skip to content

Commit ed3812d

Browse files
Add context for dynamicConfigs
1 parent aeba6a6 commit ed3812d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extension/extensionInit.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export async function registerDebugger(context: IExtensionContext): Promise<IExt
9494
);
9595

9696
context.subscriptions.push(
97-
registerCommand(Commands.Debug_Using_Launch_Config, async (file?: Uri) => {
97+
registerCommand(Commands.Debug_Using_Launch_Config, async (file?: Uri) => {
9898
sendTelemetryEvent(EventName.DEBUG_USING_LAUNCH_CONFIG_BUTTON);
9999
const interpreter = await getInterpreterDetails(file);
100100

@@ -206,5 +206,7 @@ export async function registerDebugger(context: IExtensionContext): Promise<IExt
206206
}),
207207
);
208208

209+
executeCommand('setContext', 'dynamicPythonConfigAvailable', window.activeTextEditor?.document.languageId === 'python');
210+
209211
return buildApi();
210212
}

0 commit comments

Comments
 (0)