urfdvw / circuitpython-online-ide-2

The CircuitPython Online IDE is a browser-based IDE for CircuitPython supported microcontrollers. No installation needed. Handy and powerful.
https://urfdvw.github.io/circuitpython-online-ide-2
GNU General Public License v3.0
4 stars 2 forks source link

Fix opening files in tabs #3

Closed peterbay closed 8 months ago

peterbay commented 9 months ago

Check if the tab with opening file is already open: If yes, then switch to the tab. If not, then open a new tab.

peterbay commented 9 months ago

If files from different directories have the same name, other files could not be opened.

urfdvw commented 8 months ago

This PR has multiple scopes

Regarding opening file with the same name, the same issue is resolved in PR https://github.com/urfdvw/CircuitPython-online-IDE2/pull/15 which solved the issue in another way.

Regarding opening feature tabs from IDE head only once, will keep https://github.com/urfdvw/CircuitPython-online-IDE2/pull/2 open. However, that might also need discussions and redesigning.

With that said, this PR can be closed

Thanks for the contribution!