Skip to content
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

Simply script uri converter #10728

Merged
merged 1 commit into from
Jul 11, 2022
Merged

Simply script uri converter #10728

merged 1 commit into from
Jul 11, 2022

Conversation

DonJayamanne
Copy link
Contributor

No description provided.

@DonJayamanne DonJayamanne requested a review from a team as a code owner July 7, 2022 22:14
// Make a copy of the local file if not already in the correct location
if (!this.isInScriptPath(localResource)) {
const key = getComparisonKey(localResource);
if (!this.resourcesMappedToExtensionFolder.has(key)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is no longer required. We copy the entire nbextensions folders now, instead of copying a single file

@codecov-commenter
Copy link

codecov-commenter commented Jul 7, 2022

Codecov Report

Merging #10728 (19fbf6f) into main (5e0e77a) will decrease coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff           @@
##            main   #10728   +/-   ##
======================================
- Coverage     62%      62%   -1%     
======================================
  Files        476      476           
  Lines      32985    32983    -2     
  Branches    5356     5356           
======================================
- Hits       20748    20719   -29     
- Misses     10254    10270   +16     
- Partials    1983     1994   +11     
Impacted Files Coverage Δ
...rc/notebooks/controllers/controllerRegistration.ts 88% <ø> (-1%) ⬇️
.../notebooks/controllers/vscodeNotebookController.ts 79% <ø> (ø)
src/kernels/errors/jupyterInvalidKernelError.ts 62% <0%> (-38%) ⬇️
src/platform/debugger/debugger.ts 66% <0%> (-12%) ⬇️
src/notebooks/outputs/tracebackFormatter.ts 93% <0%> (-7%) ⬇️
src/notebooks/debugger/debuggingManagerBase.ts 69% <0%> (-7%) ⬇️
src/platform/common/cancellation.ts 59% <0%> (-6%) ⬇️
src/notebooks/languages/cellLanguageService.ts 70% <0%> (-6%) ⬇️
src/kernels/installer/productInstaller.node.ts 74% <0%> (-5%) ⬇️
...rnels/raw/finder/localKernelSpecFinderBase.node.ts 81% <0%> (-3%) ⬇️
... and 10 more

@DonJayamanne DonJayamanne force-pushed the simplifyUriConverter branch from 9d7f984 to 19fbf6f Compare July 7, 2022 22:47
* The converter will post an event when it needs to convert the webview URI
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
requestUri: Event<Uri>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this event.
I personally think its simpler to read the code by firing a method to get information as opposed to firing an event to ask for information.
Events - fire and forget, and method (callbacks) mean we need a result.

@DonJayamanne DonJayamanne merged commit 47b7c29 into main Jul 11, 2022
@DonJayamanne DonJayamanne deleted the simplifyUriConverter branch July 11, 2022 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants