Skip to content

Move shared process to a browser window - #21879

Merged
João Moreno (joaomoreno) merged 25 commits into
masterfrom
joao/shared-process
Mar 7, 2017
Merged

João Moreno (joaomoreno) merged 25 commits into
masterfrom
joao/shared-process

Conversation

@joaomoreno

Copy link
Copy Markdown
Contributor

Moving the shared process to a browser window will enable it to use Chrome's network stack. This will affect mostly the extension viewlet.

Related to #18103

Comment thread src/vs/code/electron-main/main.ts Outdated
windowsMainService = accessor.get(IWindowsMainService);

windowsMainService.onWindowClose(() => {
if (windowsMainService.getWindowCount() === 0) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

João Moreno (@joaomoreno) as I said before, this should have a check for Windows/Linux, because only there we close the app when closing the last window!

@bpasero Benjamin Pasero (bpasero) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall. Upon first looks I am not sure why the native crash on Windows happens. Would be interesting if the crash reproduces if the contents of that window are super simple (that would indicate it's an issue with the way the lifecycle of the window is handled).

<script>
(function () {
try {
window.location.search.substring(1).split('&').forEach(p => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theming here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good catch, removing this.

@@ -0,0 +1,102 @@
/*---------------------------------------------------------------------------------------------

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a lot of overlap with https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/electron-browser/bootstrap/index.js#L48, maybe better to have a common base that both can reuse?

@joaomoreno
João Moreno (joaomoreno) merged commit a3ad921 into master Mar 7, 2017
@joaomoreno
João Moreno (joaomoreno) deleted the joao/shared-process branch March 7, 2017 10:34
@joaomoreno

Copy link
Copy Markdown
Contributor Author

Wow, that took a lot of commits. Thanks for the help, Benjamin Pasero (@bpasero) !

@FloMaetschke

Copy link
Copy Markdown

João Moreno (@joaomoreno) is the merge already in the latest insider build?
If yes, i can't confirm working proxy yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

proxy Issues regarding network proxies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants