Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@DonJayamanne
Copy link

@DonJayamanne DonJayamanne commented Jul 7, 2020

For #10496

  • To be merged after code freeze,
  • This is only for the insiders version of extension.
  • Was waiting for master branch to get branched for Release.
  • Also MUST wait for new VSC Release before shipping this release.

@DonJayamanne DonJayamanne marked this pull request as draft July 7, 2020 20:23
@DonJayamanne DonJayamanne added the no-changelog No news entry required label Jul 7, 2020
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 7, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.2% 0.2% Duplication

viewType: 'jupyter-notebook',
filenamePattern: '*.ipynb'
});
await settings.update('editorAssociations', editorAssociations, ConfigurationTarget.Global);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the package.json contains the necessary bits, we just need to update the users settings.json file to pick our notebook viewer as the default viewer for ipynb file.

await buildWebPackForDevOrProduction('./build/webpack/webpack.datascience-ui-notebooks.config.js', 'production');
await buildWebPackForDevOrProduction('./build/webpack/webpack.datascience-ui-viewers.config.js', 'production');
await buildWebPackForDevOrProduction('./build/webpack/webpack.extension.config.js', 'extension');
await buildWebPackForDevOrProduction('./build/webpack/webpack.datascience-ui-renderers.config.js', 'production');
Copy link
Author

@DonJayamanne DonJayamanne Jul 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shipping renderers in extension.
This is a fallback until we get Renderers extension published.

"languageServerVersion": "0.5.30",
"publisher": "ms-python",
"enableProposedApi": false,
"enableProposedApi": true,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shipping in VSIX & used only in insiders.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this mess up using without the notebook editor? Or did VS code fix that problem?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes they did, and the fix will be in the next stable release (I think today or tomorrow). Hence the need to wait for their new release.

private async enableNotebooks(useVSCodeNotebookAsDefaultEditor: boolean) {
private async enableNotebooks() {
if (this.env.channel === 'stable') {
this.shell.showErrorMessage(DataScience.previewNotebookOnlySupportedInVSCInsiders()).then(noop, noop);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Existing code ensures notebooks gets used only in insiders.

@DonJayamanne DonJayamanne marked this pull request as ready for review July 9, 2020 15:53
@DonJayamanne DonJayamanne merged commit eb6bb49 into microsoft:master Jul 9, 2020
@DonJayamanne DonJayamanne deleted the prepForNative branch July 9, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog No news entry required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.