Skip to content

Commit c03ff0e

Browse files
committed
fix venvFolder injection in search path for nativeFinder
1 parent 23e2430 commit c03ff0e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/managers/common/nativePythonFinder.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,9 @@ class NativePythonFinderImpl implements NativePythonFinder {
196196
uriSearchPaths.push(...venvFolders);
197197
return { searchPaths: uriSearchPaths };
198198
}
199-
} else {
200-
// if no options, then search venvFolders
201-
return { searchPaths: venvFolders };
202199
}
200+
// return undefined to use configured defaults (for nativeFinder refresh)
201+
return undefined;
203202
}
204203

205204
private start(): rpc.MessageConnection {

0 commit comments

Comments
 (0)