Not a biggie, but will help where developer has pages called for instance “employer-statement-view.ejs” or “employer-statement-print.ejs” which are too long to view in the edit section:
It would only solve the issue for one type of workflow. The one that includes having the left sidebar open.
This could be fixed easily with a change of strategy naming when opening tabs.
Loop through the array of opened tabs and follow these strategies depending on the results.
a) If the name of two or more files are the same find parent folder which is different and include it in the tab. e.g. /parent1/…/index.ejs and /parent2/…/index.ejs
b) Filter those files that have more characters than the amount of space in the tab. Compare the beginning of all the names and the end of all the names. If 2 or more files have the same start or same end trim the needed chars from the beginning or end and prepend/append … In your case it would show …etement-view and …etement-show
c) Remove extensions for know filetypes that have an icon in the tab. E.g. html, css, php, ejs (Make it optional)