Skip to content
Draft
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
19 changes: 3 additions & 16 deletions src/kernels/raw/finder/interpreterKernelSpecFinderHelper.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,22 +238,9 @@ export class InterpreterSpecificKernelSpecsFinder extends DisposableBase {
return;
}

if (
jupyterKernelSpec.language === PYTHON_LANGUAGE &&
// Hide default kernel specs only if env variables are empty.
// If not empty, then user has modified them.
(!jupyterKernelSpec.env || Object.keys(jupyterKernelSpec.env).length === 0) &&
isDefaultKernelSpec(jupyterKernelSpec)
) {
logger.trace(
`Hiding default KernelSpec ${getDisplayPath(
jupyterKernelSpec.argv[0]
)} for interpreter ${getDisplayPath(
jupyterKernelSpec.interpreterPath
)} (KernelSpec file ${getDisplayPath(jupyterKernelSpec.specFile)})`
);
return;
}
// Note: Previously we hid default kernel specs, but users expect to see them in the kernel picker.
// See https://github.com/microsoft/vscode-jupyter/issues/15557
// Removed hiding logic to make all kernel specs visible to users.
const kernelSpec = isKernelLaunchedViaLocalPythonIPyKernel(jupyterKernelSpec)
? PythonKernelConnectionMetadata.create({
kernelSpec: jupyterKernelSpec,
Expand Down