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

[API] Provide Virtual Document in window.visibleEditors or similar #6941

Closed
tht13 opened this issue May 26, 2016 · 6 comments
Closed

[API] Provide Virtual Document in window.visibleEditors or similar #6941

tht13 opened this issue May 26, 2016 · 6 comments
Assignees
Labels
api *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality webview Webview issues

Comments

@tht13
Copy link
Contributor

tht13 commented May 26, 2016

  • VSCode Version: 1.1.1-insiders
  • OS Version: Win10

I know window.visibleEditors is supposed to contain actual text editors but it is not possible to tell at the moment if a VirtualDocument (ie a htmlContentProvider) is in view.

The scenario I would need this for is for detecting if a Virtual Document has focus when a command is triggered. If there is another work around for this please let me know.

Thanks 😄

@jrieken
Copy link
Member

jrieken commented May 30, 2016

@tht13 You mean the view that shows when running previewHtml, right?

@tht13
Copy link
Contributor Author

tht13 commented May 30, 2016

@jrieken yup that's the one

@jrieken jrieken added feature-request Request for new features or functionality api labels May 30, 2016
@jrieken
Copy link
Member

jrieken commented May 30, 2016

It's hard... Needs thinking.

@tht13
Copy link
Contributor Author

tht13 commented May 30, 2016

It is also needed for extracting the markdown extension if full functionality is desired to be retained.
My extensions are very similar to the markdown one, but for previewing RST and HTML files.

An option could be to provide an array called visiblePanels (or similar) which is a superset of visibleEditors

@jrieken
Copy link
Member

jrieken commented Nov 17, 2017

/duplicate of #15178

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 17, 2017
@vscodebot
Copy link

vscodebot bot commented Nov 17, 2017

This issue has been closed because it is already tracked by another issue. See also our GitHub issues to search for existing issues and our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Nov 17, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality webview Webview issues
Projects
None yet
Development

No branches or pull requests

2 participants