Skip to content

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

Closed

Description

  • 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 😄

Activity

  1. jrieken commented on May 30, 2016

    @jrieken
    Contributor

    Thomas Townsend (@tht13) You mean the view that shows when running previewHtml, right?

  2. tht13 commented on May 30, 2016

    @tht13
    ContributorAuthor

    Johannes Rieken (@jrieken) yup that's the one

  3. added
    feature-request
    on May 30, 2016
  4. jrieken commented on May 30, 2016

    @jrieken
    Contributor

    It's hard... Needs thinking.

  5. tht13 commented on May 30, 2016

    @tht13
    ContributorAuthor

    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

  6. jrieken commented on Nov 17, 2017

    @jrieken
    Contributor

    /duplicate of #15178

  7. added
    *duplicate
    on Nov 17, 2017
  8. vscodebot commented on Nov 17, 2017

    @vscodebot

    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!

  9. locked and limited conversation to collaborators on Jan 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateapifeature-requestwebview

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions