Skip to content

Commit a664e3f

Browse files
author
David Kutugata
authored
PORT showStartPage setting fix (#13706) (#13758)
* fix showStartPage setting on configSettings.ts (#13706) * fix showStartPage setting on configSettings.ts * add news file * Fix unit tests * oops * update changelog
1 parent bb8ee1c commit a664e3f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
1. Fixed connection to a Compute Instance from the quickpicks history options.
1313
([#13387](https://github.com/Microsoft/vscode-python/issues/13387))
14+
1. Fixed the behavior of the 'python.showStartPage' setting.
15+
([#13347](https://github.com/microsoft/vscode-python/issues/13347))
1416

1517
### Thanks
1618

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)