Community
Participate
Working Groups
Steps: - In Settings - General: check Enable Editor Tab Support - In Settings - Editor Settings: uncheck Auto Save - Go to the Editor page. - Open at least 2 files, so that you have at least 2 tabs. - In the 2nd tab, make a change, so that the file is "dirty" and the tab shows an asterisk. - Hover on the 2nd tab to see its breadcrumb. - Problem 1: The "dirty" indicator for this file should show up in the breadcrumb, but it is missing. - Now hover over the 1st (leftmost) tab. - Problem 2: This file is not "dirty", and yet its breadcrumb is showing a "dirty" indicator asterisk. The bug is that an element with id "dirty" is being created for each breadcrumb (on line 152 in breadcrumbs.js). So when the browser is asked for an element with that id (on line 368 of globalCommands.js) it just returns the first one found. The breadcrumb "dirty" id needs to be made unique per file/tab/breadcrumb, and the mechanism for adding/removing the indicator needs to use the unique id. (Either that, or implement it in a way that doesn't use an id). This is also causing an "ids must be unique on the page" accessibility scanning violation.
Fixed with commit: https://github.com/eclipse/orion.client/commit/93293284b7dad32ce928fa8b171e68d849ad5ce0