Skip to content

Tab remains in UI after deletion #648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
per1234 opened this issue Dec 1, 2021 · 0 comments · Fixed by #894
Closed

Tab remains in UI after deletion #648

per1234 opened this issue Dec 1, 2021 · 0 comments · Fixed by #894
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Dec 1, 2021

Describe the bug

Arduino sketches may consist of multiple files, which are shown in the Arduino IDE as tabs. Secondary sketch files can be deleted via the IDE's tab management menu.

🐛 When a secondary tab is deleted via the IDE, the tab stays in the editor. The only way to remove this tab from the UI is reopening the sketch.

To Reproduce

  1. Click the downward pointing triangle button on the right side of the tab bar.
  2. Select "New Tab" from the menu.
  3. In the "Name for new file" field, type foo.
  4. Click the OK button.
    The sketch will now contain a "foo.ino" tab.
  5. Click the downward pointing triangle button on the right side of the tab bar.
  6. Select "Delete" from the menu.
  7. Click the OK button.

🐛 The "foo.ino" tab will still be shown, only with a "(deleted)" suffix.

🐛 The IDE UI does not provide any way to remove the ghost tab.

image

Expected behavior

The tab is removed from the UI once deleted, as is done by the classic Arduino IDE.

Desktop

Original report

  • OS: Windows 10
  • Version: 2.0.0-rc1-snapshot.f0d9894
    Date: 2021-11-30T16:25:41.414Z
    CLI Version: 0.20.1 [abb21449]

Last checked with

  • OS: Windows 10
  • Version: 2.0.0-rc3-snapshot-2f9bf86
    Date: 2022-02-11T14:52:06.341Z
    CLI Version: 0.21.0 [10107d24]
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Dec 1, 2021
@fstasi fstasi assigned msujew and AlbyIanna and unassigned fstasi Feb 28, 2022
@per1234 per1234 added the conclusion: resolved Issue was resolved label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants