Skip to content
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

Extension Host: Send correct parent PID #190

Merged
merged 8 commits into from
Mar 28, 2019

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Mar 27, 2019

The extension host checks to see if the 'parent process' is alive - if not, it'll close out. This is because on Windows, when the 'parent process' dies, the 'child processes' (extension host) don't necessarily die with it.

To facilitate this - we need to send the PID and set the VSCODE_PARENT_PID environment variable.

The Unix.getpid() doesn't actually return the Windows PID that the node logic expects... it returns a process handle. I've added a helper to rench to get the correct PID: revery-ui/rench#23 so that this works, as well as a regression test.

Depends on #189

* update package.json

* Update lockfiles
* Initial integration

* Revert vsync change

* Start adding extension host client Reason API

* Initial ExtensionHost client start-up

* Get extension host running

* Hook up entry point to process messages

* Add basic test case to verify we get 'Ready' message from extension host

* Formatting

* Tweak runner

* Factor protocol out

* Fix ExtHostProtocol path

* Formatting

* Fix merge conflict

* Start stubbing out InitDat

* Get ExtensionHostInitData compiling

* Formatting

* Debugging exception on startup

* Refactor interface, test for 'initialized' event

* Formatting

* Remove logging
@bryphe bryphe merged commit 8a778ac into exthost/initialization-data Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant