disable ext host cached data when developing extensions, fixes https://github.com/microsoft/vscode/issues/105512

This commit is contained in:
Johannes Rieken
2020-09-30 14:16:38 +02:00
parent 7c9a6e92c7
commit 8908fba1a0
@@ -170,6 +170,12 @@ export class LocalProcessExtensionHost implements IExtensionHost {
delete env['DYLD_LIBRARY_PATH'];
}
if (this._isExtensionDevHost) {
// Unset `VSCODE_NODE_CACHED_DATA_DIR` when developing extensions because it might
// be that dependencies, that otherwise would be cached, get modified.
delete env['VSCODE_NODE_CACHED_DATA_DIR'];
}
const opts = {
env,
// We only detach the extension host on windows. Linux and Mac orphan by default