-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
Non-functional language server items in editor context menu #1394
Comments
The LS should use them. Instead of removing the context menu items, I recommend supporting them in IDE2 in the long run. Update: if we remove them, we need to decide whether to remove them for |
The question is: how difficult will it be to support them, and how long will it take to add that? If it will be a long time and the context menu customization is easy to do, I think it would be worth removing them provisionally.
I would remove them anywhere they are not working. I also don't think it is worth making any effort or using system resources to provide enhanced functionalities for JSON (though I would make an exception for the |
IDE2 does not know it upfront. If a language (
I think the problem is here. The Arduino LS remaps the code actions from clangd as they are, but the Arduino LS's id is not
Customizing these menus is not trivial either. I propose sticking to the natural workflow and fixing the real issue instead of trying to remove the menu items as part of a hack. |
@ubidefeo, since this was originally your issue (9890 in the internal backlog), what do you think? Should we close this in favor of a bug report in |
Hello, |
Closes arduino#1394 Signed-off-by: Akos Kitta <[email protected]>
- Updated `@theia/*` to `1.37.0`. - Fixed all `yarn audit` security vulnerabilities. - Updated to `[email protected]`: - `contextIsolation` is `true`, - `nodeIntegration` is `false`, and the - `webpack` target is moved from `electron-renderer` to `web`. - Updated to `[email protected]`. - Updated the `eslint` plugins. - Added the new `Light High Contrast` theme to the IDE2. - High contrast themes use Theia APIs for style adjustments. - Support for ESM modules: `"moduleResolution": "node16"`. - Node.js >= 16.14 is required. - VISX langage packs were bumped to `1.70.0`. - Removed undesired editor context menu items. (Closes arduino#1394) Signed-off-by: Akos Kitta <[email protected]>
- Updated `@theia/*` to `1.37.0`. - Fixed all `yarn audit` security vulnerabilities. - Updated to `[email protected]`: - `contextIsolation` is `true`, - `nodeIntegration` is `false`, and the - `webpack` target is moved from `electron-renderer` to `web`. - Updated to `[email protected]`. - Updated the `eslint` plugins. - Added the new `Light High Contrast` theme to the IDE2. - High contrast themes use Theia APIs for style adjustments. - Support for ESM modules: `"moduleResolution": "node16"`. - Node.js >= 16.14 is required. - VISX langage packs were bumped to `1.70.0`. - Removed undesired editor context menu items. (Closes #1394) Signed-off-by: Akos Kitta <[email protected]>
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
😕 A tooltip appears: "No refactorings available"
😕 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
The text was updated successfully, but these errors were encountered: