-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
Add webpack bundling for faster startup #717
Conversation
Tests seem to be broken; I'm getting this error |
Sure thing, will get to this after work |
Can you fix the tests also? |
I was able to get the tests running again but a bunch of tests are failing now. 1 failure is because of how windows handles newlines (CRLF vs LF); and 1 failure because of the difference between windows directory seperators. |
I actually checked out to your current master and the test (I ran The error: |
So it seems that the reason why the tests were failing on machine is because of line ending shenanigans and git. After turning off the git config core.autocrlf the tests pass. It might be worth adding an editorconfig file to configure LF line endings as the default for the repo. Side note: It looks like the sync pragma feature will only work with a setting file that has LF line endings since the regexp that searches for pragmas uses the LF line ending. This is not really an issue since vscode creates the settings files with LF line endings by default. @shanalikhan is there anything else I should to do in order to get this merged? |
alright. That's perfect. I will merge it in few days. |
Yes i'll check this out now |
The webpack dependencies are missing in package.json. It might have gotten lost when my branch was merged in, since other changes were made to the same part of package.json. |
Yes, |
Ok I can do it later today |
Sorry for the delay. I wasn't able to package the extension because I was running into npm errors . Now that I sorted that out I ran into the same issue you posted. I will investigate tonight. |
Short description of what this resolves:
This PR improves extension startup time by bundling with webpack. On my local environment startup is down to 400 - 500 ms in the "Running Extensions" view.
I would love to be able to compare Javascript profiles of before and after but I don't know how to profile extension startup time in vscode.
Changes proposed in this pull request:
Fixes: #656
How Has This Been Tested?
I was able to build the extension using the npm scripts including compile, watch, and vscode:prepublish. I tested the changes on my environment and was able to download my settings stored in github gist.
My environment: windows 10; vscode 1.29.1 (user setup)
Screenshots (if appropriate):
Checklist: