Skip to content

NavigationHistoryEntry logic can lead to entrys being merged together when they shouldn't be #339

@Greglar4

Description

@Greglar4

In the mergeInto method of NavigationHistoryEntry, it checks if the EditorInput equals the EditorInput of the currentEntry parameter, and merges the NavigationHistoryEntries if so.

However, in our use case, we have two different editors whose EditorInputs are FileEditorInputs, and they can be editors for the same file. The equals method in FileEditorInputs returns true if the two FileEditorInputs are associated with the same underlying file.

Therefore, the NavigationHistoryEntries are merged together if the user navigates between two editors which edit the same underlying file, even though these two editors are very different editors, and should be treated as different editors for navigation purposes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions