-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: remove sync fs
calls from backend+plugin code
#12798
Conversation
|
186037c
to
3f22333
Compare
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
3f22333
to
7a89cec
Compare
fs
calls from backend+plugin code
packages/plugin-ext-vscode/src/node/plugin-vscode-directory-handler.ts
Outdated
Show resolved
Hide resolved
packages/plugin-ext/src/main/node/paths/plugin-paths-service.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Mark Sujew <[email protected]>
to handle any error gracefully in the same catch block Signed-off-by: Akos Kitta <[email protected]>
changed return try to `Promise<void>` Signed-off-by: Akos Kitta <[email protected]>
Great review, Mark. Thank you! |
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.
Looks pretty good to me 👍
Just one comment, see below.
Co-authored-by: Mark Sujew <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
@msujew Could you merge? |
What it does
Read plugin contributions asynchronously to avoid blocking and improve backend application startup.
Changed
PluginScanner#getContribution
from sync to async. Theprotected
Theia and grammar scanner APIs were affected: they have been adjusted to async.I have noticed loading all the translations and contributions takes half a second in a downstream project:
This PR removes all sync
fs
calls ingit
,siw
, andworkspace
extensions.How to test
VS Code extensions still load, and all works fine.
Review checklist
Reminder for reviewers