Selecting sketch file with double-click results in duplicate tabs #656
Labels
conclusion: resolved
Issue was resolved
criticality: high
Of high impact
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the bug
Arduino sketches may consist of multiple files, which are shown in the Arduino IDE as tabs. The "Search" and "Sketchbook" side bar panels allow the selection of the active tab by clicking on its sketch file.
When this selection is done under the following conditions:
🐛 Instead of selecting the tab as expected, a duplicate tab is opened.
To Reproduce
The following sketch is provided for the demonstration: MultipleFiles.zip
hello
There will be a search result in each of the files of the demo sketch.
For example, if the "SomeTab2.ino" tab is selected, then double-click the search result in the "MultipleFiles.ino" or "SomeTab2.ino" tabs.
🐛 There are now two tabs for the file associated with the search result you clicked:
Expected behavior
Clicking a file of a currently open sketch in a sidebar panel always selects its tab.
Each sketch file only ever gets a single tab in the editor.
Desktop
Original report
Date: 2021-11-30T16:25:41.414Z
CLI Version: 0.20.1 [abb21449]
Last checked with
Date: 2022-02-11T14:52:06.341Z
CLI Version: 0.21.0 [10107d24]
Additional context
🐛 The equivalent procedure will also produce duplicate tabs when using the "Sketchbook" side bar panel.
The text was updated successfully, but these errors were encountered: