Skip to content

"Toggle Editor Type" creates corrupted new view that cannot be opened #111474

Closed

Description

@JannisX11
  • VSCode Version: 1.51.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Open a file in a custom editor (I tested with third party extensions and with the "PawDraw" and "CatScratch" extension samples)
  2. Run "View: Toggle editor type" from the command palette
  3. Try and switch between the new and old tab

The command will create a new tab, even though it should replace the original tab, and the new tab cannot be selected properly.

Does this issue occur when all extensions are disabled?: No, the issue applies to functionality that is only exposed by custom editors.

Activity

  1. mjbvz commented on Dec 18, 2020

    @mjbvz
    Contributor

    Peng Lyu (@rebornix) I also see this happening for notebooks.

    Peng Lyu (@rebornix) and Benjamin Pasero (@bpasero) For custom editors, I used to have logic that replaced the existing editors with the newly opened one:

    // Try to replace existing editors for resource

    This code path is no longer hit in our shared reopen with command. Should I look into making this behavior part of openWith / the reopenWith command?

  2. added
    bug
    custom-editors
    on Dec 18, 2020
  3. bpasero commented on Dec 18, 2020

    @bpasero
    Contributor

    I would find it easier to argue/test this in a PR maybe.

  4. added a commit that references this issue on Jan 13, 2021
    6c4a00c
  5. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jan 13, 2021
  6. locked and limited conversation to collaborators on Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcustom-editorsinsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions