-
Notifications
You must be signed in to change notification settings - Fork 295
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
Simply script uri converter #10728
Conversation
// 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)) { |
There was a problem hiding this comment.
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 Report
@@ 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
|
9d7f984
to
19fbf6f
Compare
* 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>; |
There was a problem hiding this comment.
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.
No description provided.