Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Randomly a tab kidnaps focus while not selected #212

Closed
ubidefeo opened this issue Feb 22, 2020 · 3 comments
Closed

Randomly a tab kidnaps focus while not selected #212

ubidefeo opened this issue Feb 22, 2020 · 3 comments
Labels
topic: theia Theia IDE related issues type: imperfection Something isn't working
Milestone

Comments

@ubidefeo
Copy link

ubidefeo commented Feb 22, 2020

Describe the bug
I had a project with several files. Everything worked fine until I toggled Advanced Mode off.
At this point the focus was captured by my last open tab.
The problem presents as impossibility to type or modify text in the currently open tab, which is solved by switching to Advanced Mode.
After a while I switched to all the other tabs one by one and ended up on the last one which at that point contained all the text I had typed while trying to regain access to what I thought was a faulty keyboard.

To Reproduce

  • have project with multiple tabs/files
  • start in Basic Mode
  • switch between tabs and type text
  • switch to Advanced Mode
  • go to any tab
  • select some text
  • while selection is active switch to Basic Mode
  • the tab's text will still be selected
  • leave the selection active and start moving across tabs and type/modify text
  • sometimes the text will be correctly edited, but some other times the text will be actively changed in other tabs not visible at the moment, racking havok on your source code

Expected behavior
n/a

Screenshots
see screen capture at the link in next comment

Desktop (please complete the following information):

  • OS: MacOS
  • 10.14.6 (Mojave)

Additional context
n/a

@ubidefeo ubidefeo added the type: imperfection Something isn't working label Feb 22, 2020
@ubidefeo
Copy link
Author

I have been messing with it a bit further and it's worse than I thought.
Again, it only happens in basic mode.
See capture video below
https://drive.google.com/file/d/1Z1pU2X30JRqRSq0oape6wi_FBiks8y3T/view?usp=sharing

@ubidefeo
Copy link
Author

Of course when going back to the tabs where text has been edited, no UNDO is available and the file appears to have been automatically saved.
This means your code is lost forever.

@ubidefeo ubidefeo added the topic: theia Theia IDE related issues label Feb 22, 2020
@ubidefeo ubidefeo changed the title Randomly a tab kidnaps focus when not selected Randomly a tab kidnaps focus while not selected Feb 22, 2020
@spoenemann
Copy link

Could this be related to eclipse-theia/theia#6298 ?

@spoenemann spoenemann added this to the v0.0.6 milestone Mar 10, 2020
Timmm96 pushed a commit to ijustneedactions/ardidepi that referenced this issue Apr 29, 2025
This commit is a temporary workaround for eclipse-theia/theia#6298.

Closes arduino/arduino-pro-ide#212.

Signed-off-by: Akos Kitta <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: theia Theia IDE related issues type: imperfection Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants