-
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
vscode emmet extension does not work anymore #5756
Comments
maybe unload of the cache #5514 ? |
@benoitf thanks, checking |
@benoitf Why do we need to mess around with internal details on require function? I wonder why it was introduced? Someone redeploys another version of the same extension without reloading the window? |
yes, reverting #5514 helps |
it's on che side inside containers, extensions are restarted in the same process (this is why there is a need of proper clean-up as in fact there are some memory leaks) |
@benoitf the reason is this line: https://github.com/theia-ide/theia/blob/3587c237cacc638dc54ec19dc3eaa755c2e69fb5/packages/plugin-ext/src/hosted/node/plugin-host-rpc.ts#L115 Is it really necessary? If we remove it would you be able to verify that there are no memory leaks? It would be good what other contributors can test with vanilla Theia. Also code looks a bit strange. I've looked at npm modules which do unloading, they are traversing module tree starting from the root and only delete loaded modules from the root instead of going over the whole cache, so they never touch unrelated records. Could we use |
I could not find here nodejs/node#8443 an advice to purge module exports. |
- don't touch exports! - traverse only modules loaded by the plugin, not the entire require cache Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Unloading is not related, see #5760 (comment) |
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
In order to reproduce, install it from https://registry.npmjs.org/@theia/vscode-builtin-emmet/-/vscode-builtin-emmet-0.2.1.tgz
The text was updated successfully, but these errors were encountered: