-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Change all occurences and Command Palette is in every editor #74558
Comments
Makes sense to not have them in there. I would think there should be a context key set whenever the editor is not used as a real text editor and then we can change those registrations. |
There should be a context keys for this. Every editor should have this property is simple widget something. |
There is a context key |
I can look into this this mielstone, thus assignign to October and removing other asignees. |
@rebornix please review the fix. I checked out how it beahves and it seems good. |
Thanks, I’ll take a look. |
@isidorn not sure if I understand it incorrectly, restricting the command to |
I believe it does. Because the editorTextFocus is set only when the editor is not a simple widget. Check it out here https://github.com/Microsoft/vscode/blob/f554449e3baa6db81c04ed2c321c60ec3a8e9b9f/src/vs/editor/browser/widget/codeEditorWidget.ts#L1640 And I hope the comment editor is a simple editor widget like the repl input is. I set this here https://github.com/Microsoft/vscode/blob/f554449e3baa6db81c04ed2c321c60ec3a8e9b9f/src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.ts#L43 |
I did use the simple editor by following repl input but turned out that language features won't be enabled when doing so. But we may still want to do so otherwise it's polluting the extension API. |
Yeah. If you can make it to be a simple editor widget that would be great. |
@isidorn thanks, I changed it to simple editor and considering we only need suggestion / snippet, it should be fine. |
@rebornix great, thanks for doing that. |
Refs: #74472
Notice how the context menu in the comment input box is pretty useless. It has all the unrelated actions. And we have similar problem in the debug console input box.
I belive the Change all occurences and the Command Palette belong only in the main editor and they should be removed from all others.
@bpasero @jrieken On what context keys do we contribute these commands. Can we fine tune them so they do not appear in every editor?
The text was updated successfully, but these errors were encountered: