Skip to content

Non-functional language server items in editor context menu #1394

Closed
@per1234

Description

@per1234

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:

image

🐛 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

  1. Select any code in the sketch editor view.
  2. Right click on the selection.
  3. Select "Refactor..." from the context menu.
    😕 A tooltip appears: "No refactorings available"
  4. Right click on the selection.
  5. 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

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions