-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
fix: Removed use of origional fs to allow extension to work remotely #571
Conversation
Codecov Report
@@ Coverage Diff @@
## master #571 +/- ##
=======================================
Coverage 57.69% 57.69%
=======================================
Files 110 110
Lines 4099 4099
Branches 583 583
=======================================
Hits 2365 2365
Misses 1521 1521
Partials 213 213 Continue to review full report at Codecov.
|
src/extension.ts
Outdated
@@ -166,6 +166,9 @@ export async function activate(context: ExtensionContext) { | |||
new Disposable(() => Disposable.from(...disposables).dispose()) | |||
); | |||
|
|||
//See https://github.com/JohnstonCode/svn-scm/issues/561 | |||
(process as any).noAsar = true; |
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.
Do not do it
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.
The trick: https://github.com/JohnstonCode/svn-scm/blob/master/src/svn.ts#L10 not work when noAsar
is true
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.
What deps is that trick bringing in again?
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.
To reduce size of ".vsix", some dependencies are removed, to use the embed module in "VSCode"
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.
See #409
Instead of change, add the https://www.npmjs.com/package/original-fs, work like a polyfill |
How does the polyfill work? I mean i know how it exports fs. But how does it not conflict with the other orgional-fs in electron? |
For electron, the module "original-fs" is loaded before files |
🎉 This PR is included in version 1.48.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #561