Skip to content

Unable to use outline with search editor #154348

Open

Description

@ppggff

Does this issue occur when all extensions are disabled?: Yes/No

Version: 1.68.1
Commit: 30d9c6c
Date: 2022-06-14T12:52:13.188Z
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Darwin x64 19.6.0

Steps to Reproduce:

  1. Search in files, and search something
  2. Click 'Open in editor' to open search editor
  3. When search editor is the current editor, click item in the outline panel
  4. New search editor with name '.' is open, with an error message in the middle of that editor: "The editor could not be opened due to an unexpected error: Unable to resolve resource search-editor:#0.908...."

Activity

  1. added this to the Backlog milestone on Jul 7, 2022
  2. chen-simon commented on Jul 13, 2022

    @chen-simon

    Hi! I am a first time contributor looking to make my first contribution. I am able to reproduce the bug, and for clarification, have taken photos:

    image
    image

  3. roblourens commented on Jul 16, 2022

    @roblourens
    Member

    That's the bug, yes. I would take a PR but don't know where to point you on this one off the top of my head.

  4. chen-simon commented on Jul 16, 2022

    @chen-simon

    That's the bug, yes. I would take a PR but don't know where to point you on this one off the top of my head.

    Hi!! I have been looking through the source code that creates the workbench tree (for the outline pane) and can't seem to find where the event, when the outline is created, is attached to each tree element. Would you happen to know where that is?

    (The click event being to move the document to the proper location.)

  5. roblourens commented on Jul 20, 2022

    @roblourens
    Member

    Sorry, I'm not sure I understand what you're asking for

  6. andreamah commented on Dec 14, 2022

    @andreamah
    Contributor

    That's the bug, yes. I would take a PR but don't know where to point you on this one off the top of my head.

    Hi!! I have been looking through the source code that creates the workbench tree (for the outline pane) and can't seem to find where the event, when the outline is created, is attached to each tree element. Would you happen to know where that is?

    (The click event being to move the document to the proper location.)

    Registering the event that gets triggered on click of the tree elements is here:

    this._editorControlDisposables.add(tree.onDidOpen(e => newOutline.reveal(e.element, e.editorOptions, e.sideBySide)));

    But you can probably also look at how other things interact with the outline service to properly populate it with custom info. I haven't taken too thorough of a look at the outline code yet, but I'm assuming that that's how it would end up being like

  7. xylin0 commented on Mar 16, 2023

    @xylin0

    Hi, in 1.77.0-insider this bug still exists, any progress on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberoutlineSource outline view issuessearch-editor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions