-
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
Disable snippets in extension search (when not in suggest dropdown) #55281
Disable snippets in extension search (when not in suggest dropdown) #55281
Conversation
@@ -342,7 +343,7 @@ export class ExtensionsViewlet extends ViewContainerViewlet implements IExtensio | |||
this.monacoStyleContainer = append(header, $('.monaco-container')); | |||
this.searchBox = this.instantiationService.createInstance(CodeEditorWidget, this.monacoStyleContainer, | |||
mixinHTMLInputStyleOptions(getSimpleEditorOptions(), localize('searchExtensions', "Search Extensions in Marketplace")), | |||
getSimpleCodeEditorWidgetOptions()); | |||
{ isSimpleWidget: true, contributions: [SuggestController] }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree we don't need SnippetController2
and TabCompletionController
, but have you gone through what the other contributions (MenuPreventer, SelectionClipboard, ContextMenuController) of the simple editor have to offer to ensure we are not missing out on anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MenuPreventer
stopsAlt+click
from toggling the menu bar visibility. We should have that.SelectionClipboard
is a Linux specific thing that I can't seem to get to trigger on Windows. From what I can tell, it automatically adds whatever you select to your clipboard and pastes it on middle click. Not sure if this is something we want, given we select the search text for the user occasionally and this might overwrite their clipboardContextMenuController
allows you to right click in the search box. We should have that.
Looks like removing SnippetController2 is breaking the ability to insert text. Error shows up: |
Looks like the SuggestController delegates the actual insertion of text to the SnippetController2. So removing SnippetController2 breaks the SuggestContoller. Not sure what the best way to proceed from here is...
|
8494f50
to
b0af12c
Compare
Needed for #55386. |
This closes #55278, but a full solution is contingent on #55280.
This closes #55280 with 5a32484