Skip to content

Commit de1a7bc

Browse files
author
David Kutugata
authored
fix showStartPage setting on configSettings.ts (#13706)
* fix showStartPage setting on configSettings.ts * add news file * Fix unit tests * oops
1 parent 59b8bb2 commit de1a7bc

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

news/2 Fixes/13706.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the behavior of the 'python.showStartPage' setting.

src/client/common/configSettings.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,11 @@ export class PythonSettings implements IPythonSettings {
544544
this.datascience = dataScienceSettings;
545545
}
546546

547+
const showStartPage = pythonSettings.get<boolean>('showStartPage');
548+
if (showStartPage !== undefined) {
549+
this.showStartPage = showStartPage;
550+
}
551+
547552
this.insidersChannel = pythonSettings.get<ExtensionChannels>('insidersChannel')!;
548553
}
549554

src/test/common/configSettings/configSettings.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ suite('Python Settings', async () => {
4747
let settings: CustomPythonSettings;
4848
setup(() => {
4949
sinon.stub(EnvFileTelemetry, 'sendSettingTelemetry').returns();
50-
config = TypeMoq.Mock.ofType<WorkspaceConfiguration>(undefined, TypeMoq.MockBehavior.Strict);
50+
config = TypeMoq.Mock.ofType<WorkspaceConfiguration>(undefined, TypeMoq.MockBehavior.Loose);
5151
expected = new CustomPythonSettings(undefined, new MockAutoSelectionService());
5252
settings = new CustomPythonSettings(undefined, new MockAutoSelectionService());
5353
expected.defaultInterpreterPath = 'python';

0 commit comments

Comments
 (0)