Skip to content

Commit 3e63004

Browse files
committed
inspect vs
1 parent 964528a commit 3e63004

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/managers/builtin/helpers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ export async function shouldUseUv(log?: LogOutputChannel, envPath?: string): Pro
5353
const config = getConfiguration('python-envs');
5454
const alwaysUseUv = config.get<boolean>('alwaysUseUv', true);
5555

56+
console.log(`alwaysUseUv setting is ${alwaysUseUv}`);
57+
console.log(config.inspect<boolean>('alwaysUseUv')?.globalValue);
58+
5659
if (alwaysUseUv) {
5760
return await isUvInstalled(log);
5861
}

src/test/managers/builtin/helpers.shouldUseUv.unit.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ suite('Helpers - shouldUseUv', () => {
7676
// Mock - alwaysUseUv is true and UV is installed
7777
mockConfig.get.withArgs('alwaysUseUv', true).returns(true);
7878
mockConfig.get.withArgs('alwaysUseUv').returns(true);
79+
mockConfig.inspect.withArgs('alwaysUseUv').returns({ globalValue: true });
7980
isUvInstalledStub.resolves(true);
8081
getUvEnvironmentsStub.resolves([]);
8182

0 commit comments

Comments
 (0)