Skip to content

Commit d57ce9f

Browse files
authored
Tweaks for gather (#10532)
FileSystem - raw tests have some failures, but these are currently known to be flakey and the changes in this PR have no bearing on them.
1 parent 0aa6088 commit d57ce9f

File tree

5 files changed

+29
-9
lines changed

5 files changed

+29
-9
lines changed

build/webpack/webpack.extension.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const config = {
6161
},
6262
// Packages listed in externals keeps webpack from trying to package them.
6363
// The ppaPackageList variable is set to non-empty if the build pipeline has been
64-
//authenticated to install @msrvida/python-program-analysis.
64+
// authenticated to install @msrvida/python-program-analysis.
6565
externals: ['vscode', 'commonjs', ...ppaPackageList, ...existingModulesInOutDir],
6666
plugins: [
6767
...common.getDefaultPlugins('extension'),

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,14 +1863,14 @@
18631863
},
18641864
"python.dataScience.enableGather": {
18651865
"type": "boolean",
1866-
"default": false,
1867-
"description": "Enable experimental code gathering for executed cells. For a gathered cell, that cell and only the code it depends on will be exported to a new notebook.",
1866+
"default": true,
1867+
"description": "Python Insiders Only: Enable experimental gather feature for executed cells. For a gathered cell, that cell and only the code it depends on will be exported to a new notebook.",
18681868
"scope": "resource"
18691869
},
18701870
"python.dataScience.gatherToScript": {
18711871
"type": "boolean",
1872-
"default": true,
1873-
"description": "If experimental code gather is enabled, gather code to a python script rather than a notebook.",
1872+
"default": false,
1873+
"description": "Python Insiders Only: If experimental gather feature is enabled, gather code to a python script rather than a notebook.",
18741874
"scope": "resource"
18751875
},
18761876
"python.dataScience.codeLenses": {

src/client/datascience/gather/gather.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export class GatherProvider implements IGatherProvider {
2525
@inject(IDisposableRegistry) private disposables: IDisposableRegistry,
2626
@inject(ICommandManager) private commandManager: ICommandManager
2727
) {
28+
// Disable gather if we're not running on insiders.
2829
this._enabled =
2930
this.configService.getSettings().datascience.enableGather &&
3031
this.configService.getSettings().insidersChannel !== 'off'
Lines changed: 11 additions & 2 deletions
Loading
Lines changed: 12 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)