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

fix: Removed use of origional fs to allow extension to work remotely #571

Merged
merged 1 commit into from
May 13, 2019

Conversation

JohnstonCode
Copy link
Owner

fixes #561

@codecov
Copy link

codecov bot commented May 13, 2019

Codecov Report

Merging #571 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

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

@edgardmessias edgardmessias self-requested a review May 13, 2019 14:25
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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do not do it

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Owner Author

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?

Copy link
Contributor

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"

Copy link
Contributor

Choose a reason for hiding this comment

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

See #409

@edgardmessias
Copy link
Contributor

Instead of change, add the https://www.npmjs.com/package/original-fs, work like a polyfill

@JohnstonCode
Copy link
Owner Author

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?

@edgardmessias
Copy link
Contributor

For electron, the module "original-fs" is loaded before files

@edgardmessias
Copy link
Contributor

Look: https://nodejs.org/api/modules.html#modules_loading_from_node_modules_folders

@JohnstonCode JohnstonCode merged commit 9da6001 into master May 13, 2019
@JohnstonCode JohnstonCode deleted the 561 branch May 13, 2019 14:52
JohnstonCode added a commit that referenced this pull request May 13, 2019
## [1.48.3](v1.48.2...v1.48.3) (2019-05-13)

### Bug Fixes

* Added origional-fs polyfil for remote vs code ([#571](#571)) ([9da6001](9da6001)), closes [#561](#561)
@JohnstonCode
Copy link
Owner Author

🎉 This PR is included in version 1.48.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SVN doesn't work with Remote-SSH extension
2 participants