-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
Discussion : Improving Startup Time #472
Comments
can you share your settings sync settings |
That's all settings about settings sync in my user settings file |
I have renamed this thread as discussion and open for pull request from anyone having ideas to improve the startup. code-settings-sync/src/extension.ts Line 32 in 8686424
code-settings-sync/src/extension.ts Line 33 in 8686424
code-settings-sync/src/extension.ts Line 34 in 8686424
On startup, currently these things are performed:
|
@shanalikhan
It means the extension is always be activated. I know this may be the function of automatically synchronizing settings when starting VSCode. And we have to consider that: Do we really need to sync automatically? So, here is my solution:
Here are some sync method will blocking thread in let lockExist: boolean = await FileService.FileExists(en.FILE_SYNC_LOCK);
if (!lockExist) {
fs.closeSync(fs.openSync(en.FILE_SYNC_LOCK, 'w'));
}
let locked: boolean = lockfile.checkSync(en.FILE_SYNC_LOCK);
if (locked) {
lockfile.unlockSync(en.FILE_SYNC_LOCK);
} |
Yes Settings sync needs to supports auto upload and auto download features. |
I didn't mean this. I mean. set The best situation is: when I need it and when it runs. I know why we can't remove it. because it required by so, what I mean is: manual or automatic sync If manual: We can remove If automatic: extension always run when VSCdoe startup |
Well, Lets keep this automatic for now. |
* german localization * corrected naming of locale * german localization * corrected naming of locale * fix: missing partial i18n translation * fix: missing partial i18n translation * fix: add missing key for German language file * fix: typo * Minor Wording Changes The text on some parts looked strange and not correct, thought I'd update a few for grammar and looks. * chore: update .gitignore * chore: add tslint and prettier rules * chore: add format script * chore: update teslint rules to make it defined mutilple class in one file * chore: run tslint before publish extension * refactor: format the code with prettier * chore: update tsconfig and tslint * refactor: refactor utils.ts * refactor: refactor localize.ts * refactor: refactor setting.ts * refactor: refactor environmentPath.ts * refactor: refactor fileService.ts * chore: update teslint rules * refactor: replace github package with @octokit/rest * chore: update teslint rules * refactor: refactor commons.ts * refactor: refactor pluginService.ts * refactor: extension.ts * feat: replace fs module with fs-extra, and use async await instead of callback style * feat: update deps for vscode/typescript/adm-zip/tslint * refactor: refactor callback style with async await * remove unused dependencies ncp and rimraf, use fs-extra instead * fix: invalid @octokit/rest constructor options * chore: update travis script * fix: lstat should be async no sync * fix: user agent for proxy * pref: improve performance when start up. use async instead of sync method #472 * fix: implement promisify and fix lockfile * feat: use lockfile instead of proper-lockfile. * pref: improve performance * refactor: add sync class and clean up extension file. it should improve startup performance #472 * refactor: add lockfile.ts * fix: typo ShowSummaryOutput * refactor: refactor download function * fix: lockfile * refactor: rename 'en' to 'env' * refactor: remove unused activationEvents * refactor: refactor upload logic, make it clean * style: rename lockfile function name, make it same style with other * refactor: sync advance options * chore: not allow unuser locals and params. make it clean * refactor: remove unused local and params * refactor: remove unneed await * pref: improve localize performance, init when extension be actived * fix: make sure resolve language merger with default language. * Update tutorial message * Fix slack img * Update path to imgur link * Update tutorial link again * Extension Installation CLI Added TSLint Improved #434 #590 #513 #337 * Summary improved * Github Api Code Improvements Anonymous Gist Code Removed Initializtion in contructor github api updated proxy addition github enterprise support updated * Ignored extensions can be accidentally deleted if removeExtensions is enabled. (#604) * Fix for #516 * Update to fix `ignoredExtensions` where extensions were deleted if `removeExtensions` was enabled. * #604 * Extension summary #577 * Gist Name change #513 * #611 * fix: error translation * #611 - Changelog CLI Improvements * #611 * #611
We have written the needed data into your clipboard. Please paste:
Is it possible that the plugin was partly loaded at the vscode starting up, and then entirely loaded when I use it to synchonize my settings?
The text was updated successfully, but these errors were encountered: