Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Copy widget scripts to extension folder #11082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 10, 2020

Conversation

DonJayamanne
Copy link

For #11061

@DonJayamanne DonJayamanne added the no-changelog No news entry required label Apr 10, 2020
@codecov-io
Copy link

codecov-io commented Apr 10, 2020

Codecov Report

Merging #11082 into master will decrease coverage by 0.02%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11082      +/-   ##
==========================================
- Coverage   61.42%   61.39%   -0.03%     
==========================================
  Files         597      597              
  Lines       32752    32756       +4     
  Branches     4631     4631              
==========================================
- Hits        20119    20112       -7     
- Misses      11617    11626       +9     
- Partials     1016     1018       +2     
Impacted Files Coverage Δ
...rc/client/common/application/webPanels/webPanel.ts 11.25% <0.00%> (ø)
...t/common/application/webPanels/webPanelProvider.ts 34.61% <37.50%> (+2.79%) ⬆️
...ence/ipywidgets/localWidgetScriptSourceProvider.ts 88.13% <100.00%> (-3.39%) ⬇️
...nce/ipywidgets/remoteWidgetScriptSourceProvider.ts 88.88% <100.00%> (ø)
src/datascience-ui/react-common/arePathsSame.ts 75.00% <0.00%> (-12.50%) ⬇️
src/client/common/utils/platform.ts 64.70% <0.00%> (-11.77%) ⬇️
src/client/linters/pydocstyle.ts 86.66% <0.00%> (-2.23%) ⬇️
src/client/datascience/debugLocationTracker.ts 76.56% <0.00%> (-1.57%) ⬇️
...client/datascience/kernel-launcher/kernelFinder.ts 75.70% <0.00%> (-0.94%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7129036...f991ce2. Read the comment docs.

@sonarqubecloud
Copy link

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.0% 0.0% Duplication

) {}

// tslint:disable-next-line:no-any
public async create(options: IWebPanelOptions): Promise<IWebPanel> {
const serverData = options.startHttpServer
? await this.ensureServerIsRunning()
: { port: undefined, token: undefined };

return new WebPanel(this.fs, this.disposableRegistry, serverData.port, serverData.token, options);
// Allow loading resources from the `<extension folder>/tmp` folder when in webiviews.
Copy link

Choose a reason for hiding this comment

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

Hey do you want to fix the 'workspace' root bug while you're changing this?

@DonJayamanne DonJayamanne merged commit 5d13fa2 into microsoft:master Apr 10, 2020
@DonJayamanne DonJayamanne deleted the copyScripts branch April 10, 2020 21:06
// Only if original file has been modified should we create a new copy of the sam file.
const fileHash: string = await this.fs.getFileHash(localResource.fsPath);
const uniqueFileName = sanitize(sha256().update(`${localResource.fsPath}${fileHash}`).digest('hex'));
const targetFolder = await this.createTargetWidgetScriptsFolder;
Copy link

Choose a reason for hiding this comment

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

Seems like the name here should have 'promise' in it somewhere. looks like you forgot to call a function

'@jupyter-widgets/controls',
'@jupyter-widgets/base',
'@jupyter-widgets/output',
'azureml_widgets'
Copy link

Choose a reason for hiding this comment

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

Does this work now? Meaning they put the source up on unpkg?

DonJayamanne added a commit that referenced this pull request Apr 13, 2020
* Copy widget scripts to extension folder
* Fix test
DonJayamanne added a commit that referenced this pull request Apr 14, 2020
* Load widget scripts from CDN and/or local python interpreter (#10987)

* Address sonar issues
* Fix linter
* Fixes
* Better way to pas array buffer
* Added comments
* Oops

* Copy widget scripts to extension folder (#11082)

* Copy widget scripts to extension folder
* Fix test

* Remove aml scripts from extension (#11085)

* Validate python when nb opened not on extension activates (#11087)

For #10893

* Support workspace images in markdown cells (#11086)

For #10893

* Fix functional tests for ipywidgets and download just chrome b… (#11093)

For #11092

playwright downloads other browsers, we need just one chrome (as this is closest to what VSCode is built upon)

* Added tests for k3d widget (#11133)

For #10799, #11096

* Fix failing ipywidget tests (#11132)

For #11099

* Update change log
@lock lock bot locked as resolved and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants