Skip to content

Commit 861128f

Browse files
committed
refactor: simplify getRefreshOptions return type to always return RefreshOptions
1 parent 9a9e93a commit 861128f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/managers/common/nativePythonFinder.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class NativePythonFinderImpl implements NativePythonFinder {
435435
this.connection.dispose();
436436
}
437437

438-
private getRefreshOptions(options?: NativePythonEnvironmentKind | Uri[]): RefreshOptions | undefined {
438+
private getRefreshOptions(options?: NativePythonEnvironmentKind | Uri[]): RefreshOptions {
439439
// Note: venvFolders is also fetched in getAllExtraSearchPaths() for configure().
440440
// This duplication is intentional: when searchPaths is provided to the native finder,
441441
// it may override (not supplement) the configured environmentDirectories.
@@ -452,8 +452,8 @@ class NativePythonFinderImpl implements NativePythonFinder {
452452
return { searchPaths: uriSearchPaths };
453453
}
454454
}
455-
// return undefined to use configured defaults (for nativeFinder refresh)
456-
return undefined;
455+
// return empty object to use configured defaults (for nativeFinder refresh)
456+
return {};
457457
}
458458

459459
private start(): rpc.MessageConnection {

0 commit comments

Comments
 (0)