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

Revisit need for node/electron-browser in workbench/contrib/preferences #69111

Closed
bpasero opened this issue Feb 21, 2019 · 10 comments
Closed

Revisit need for node/electron-browser in workbench/contrib/preferences #69111

bpasero opened this issue Feb 21, 2019 · 10 comments
Assignees
Labels
debt Code quality issues web Issues related to running VSCode in the web
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented Feb 21, 2019

Refs #68302

I am not sure why src/vs/workbench/contrib/preferences has to have most of its files in electron-browser land. Please consider lifting this to browser if possible.

If there is something blocking this task, speak up and we need to think about introducing new services as needed.

@roblourens
Copy link
Member

roblourens commented Feb 22, 2019

I need a RequestService. Not sure why the XHR one is in electron-browser?

@bpasero
Copy link
Member Author

bpasero commented Feb 22, 2019

Yeah it does not look trivial to move it because it seems the interface it returns has some node dependencies.

Any takers? @chrmarti with your recent proxy work? @joaomoreno ?

I have updated #68302 with:

Implement a IRequestService that works in browser context (using XHR)

@bpasero
Copy link
Member Author

bpasero commented Feb 22, 2019

@roblourens to clarify, this service is being used for Bing search support?

@chrmarti
Copy link
Collaborator

There already is xhrRequest: IRequestFunction in the requestService.ts, that should be independent of Node. IRequestOptions mixes in an Agent which is Node, but that is not used by xhrRequest which just relies on the browser's proxy support.

@bpasero
Copy link
Member Author

bpasero commented Feb 22, 2019

@chrmarti yeah, I was more referring to the stream usage in IRequestOptions and IRequestContext

@roblourens
Copy link
Member

Yes @bpasero

@bpasero bpasero added the web Issues related to running VSCode in the web label May 9, 2019
@bpasero
Copy link
Member Author

bpasero commented Jul 11, 2019

@sandy081 is working on bringing the IRequestService into the browser.

Related/Duplicate: https://github.com/microsoft/vscode/issues/75087

@sandy081 sandy081 self-assigned this Jul 11, 2019
@sandy081 sandy081 added this to the July 2019 milestone Jul 11, 2019
@sandy081
Copy link
Member

Request service is now available in web and the interface is moved to common.

Adopted this and now In web, Settings also support bing search.

Closing it.

@sandy081
Copy link
Member

sandy081 commented Jul 11, 2019

Reopening as the request service is not yet functional in web. Working on it.

@sandy081 sandy081 reopened this Jul 11, 2019
@sandy081
Copy link
Member

After investigating, figured out that request service is functional but the bing results server should be adopted. Will add more details in the other issue.

Since this issue is about moving Preferences search service to browser which is done. So closing this.

@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debt Code quality issues web Issues related to running VSCode in the web
Projects
None yet
Development

No branches or pull requests

4 participants