Closed
Description
Describe the problem
Right clicking on the sketch editor view opens a context menu that offers various useful operations that can be done on the selection:
🐛 The "Refactor..." and "Source Action..." context menu items don't appear to be usable with Arduino sketches. They increase the complexity and clutter of the Arduino IDE user interface without adding anything of value.
To reproduce
- Select any code in the sketch editor view.
- Right click on the selection.
- Select "Refactor..." from the context menu.
😕 A tooltip appears: "No refactorings available" - Right click on the selection.
- Select "Source Action..." from the context menu.
😕 A tooltip appears: "No source actions available"
Expected behavior
All items in the editor context menu are useful.
Arduino IDE version
2.0.0-rc9.2.snapshot-20cc34c
Operating system
Windows, Linux
Operating system version
Windows 10, Ubuntu 20.04
Additional context
Additional Reports
- chore: Theia 1.37.0 #2027 (review)
- https://forum.arduino.cc/t/arduino-ide-refactoring-does-not-work-macos/1063461 / https://forum.arduino.cc/t/outils-du-menu-contextuel-dans-lediteur/1063025
- https://forum.arduino.cc/t/refactoring-still-not-working/1036055
- https://forum.arduino.cc/t/code-navigation/1033135/3
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details