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

Create an API for embedding a native window inside a panel #100616

Closed
GinoMan opened this issue Jun 20, 2020 · 5 comments
Closed

Create an API for embedding a native window inside a panel #100616

GinoMan opened this issue Jun 20, 2020 · 5 comments
Assignees
Labels
*out-of-scope Posted issue is not in scope of VS Code

Comments

@GinoMan
Copy link

GinoMan commented Jun 20, 2020

The use case:

I'm working on learning Flutter development and I have the emulator up while I work on my code. I'm however noticing that the emulator can be set to always be on top, but that covers part of the window. It wouldn't be so bad though if I could embed the emulator as a pane in VSCode off to the side.

I'm thinking of something that would look like this:
Embedded Emulator Sample

Options:

One way of doing this would be to create an API for embedding an arbitrary native UI Into a pane. This would allow the embedding of many applications in the same window for such a use case.

Another way would be to set up a transparency area under which the native UI would run and pass input through to it.

Thoughts?

@alexr00
Copy link
Member

alexr00 commented Jun 22, 2020

Duplicate of #83911

@alexr00 alexr00 marked this as a duplicate of #83911 Jun 22, 2020
@alexr00 alexr00 closed this as completed Jun 22, 2020
@alexr00 alexr00 added the *duplicate Issue identified as a duplicate of another issue(s) label Jun 22, 2020
@GinoMan
Copy link
Author

GinoMan commented Jul 11, 2020

I disagree that this is per-se a duplicate.

#83911 is only a "custom webview" which would work for embedding say another electron app's content. This instead would allow native windows for the OS. Though given the design I described in the contrived screenshot above, it would likely depend upon that feature request being implemented to host it for the buttons. I doubt a "custom webview" would allow you to embed the android emulator for example as described above.

@alexr00
Copy link
Member

alexr00 commented Jul 13, 2020

@GinoMan I see what you're saying (arbitrary native applications, not arbitrary UI). Embedding native applications inside VS Code isn't something we plan on doing. While I understand why it would be useful, it is out of scope for VS Code.

@alexr00 alexr00 added *out-of-scope Posted issue is not in scope of VS Code and removed *duplicate Issue identified as a duplicate of another issue(s) labels Jul 13, 2020
@BinToss
Copy link

BinToss commented May 11, 2023

This may be a requirement for implementing an equivalent to "Blend for Visual Studio".

Edit: embedding a native window via its HWND into an eletron app may suffice for extension authors, but do non-Windows platforms have an equivalent? See electron/electron#10547 (comment)

@edgardozoppi
Copy link

I agree that this feature will bring a lot of new possibilities to VS Code extensions and allows it to integrate even further with already existing external apps implemented using other technologies.
In particular will improve the flow of game console development by allowing emulators to be embedded right inside the VS Code GUI. Also mobile app development using emulators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

5 participants