Skip to content

Electron: Enable renderer process reuse #120431

@rzhao271

Description

@rzhao271

We currently have process reuse disabled in main.js, but considering how the native modules we use are now context-aware, we can start looking more into enabling process reuse.

There are other processes to look into, but for now, I would like to concentrate just on the extensionHost and watcherService. For those, I'm wondering

  1. Are the processes killed + restarted during a reload?
  2. Are the processes killed + restarted when a user opens a new folder or workspace? I'm currently trying to see if such actions are equivalent to a reload right now, but haven't yet found the code.
  3. If yes to 1 and/or 2, can they be set up in a way using IPC such that the main process can send a reset signal during reloads? This way, we can continue using the same child process, and it's just the state of the child process that gets reset.

Metadata

Metadata

Labels

electron-16-updateIssues related to electron 16 updatefeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-testplansandboxRunning VSCode in a node-free environmentworkbench-electronElectron-VS Code issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions