-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Allow showing intellisense without pre-selected item #151336
Comments
A finer point to note is that in Kusto desktop tool, if intellisense was triggered by the user, the value is preselected. so we need to have this mode only when calling editor.trigger (somehow need to have this as a parameter to the call editor.trigger('monaco-kusto', 'editor.action.triggerSuggest', {}) |
Let's use June to figure out how this should work and how this should be done. Might also be interesting to explore if inline completions (aka ghost text) can be used here |
This allows to trigger suggest (as normal) but not select an item, #151336
fyi @lidermanrony lastest bits in main support a |
@lidermanrony @avneraa do those changes work for you? Did we reach happyness? |
Sort of related to this, can #85768 be reconsidered? It didn't get enough upvotes when a Backlog Candidate a couple of years ago. |
Hi, Is it possible to expose us this kind of mode? |
Awesome Gil!
From: gil-koifman ***@***.***>
Sent: Thursday, November 3, 2022 10:02 AM
To: microsoft/vscode ***@***.***>
Cc: Avner Aharoni ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode] Allow showing intellisense without pre-selected item (Issue #151336)
Hi,
We want to to have this noSelection option whenever the user is pressing the "triggerCharacters" in the CompletionProvider.
Lets say the trigger character is a space character, then we want to be able to configure that after pressing the space character, and showing the completion items, then there will be nothing selected by default.
But if the user has started typing, or is in the middle of the word, then we do want the best option to be preselected.
Is it possible to expose us this kind of mode?
Thanks!
-
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode%2Fissues%2F151336%23issuecomment-1301754510&data=05%7C01%7Cavnera%40microsoft.com%7C2c7a3e68bfdb410294af08dabd71bcfc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638030593467802567%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bTwB2BBJG12ZoO%2Bz%2FB3kKHE%2F1vgNjw1H2i8LUKaVKTE%3D&reserved=0>, or unsubscribe<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABAQQRXJJBJ7YPVK7BO25I3WGNWQ5ANCNFSM5X7KJ7QA&data=05%7C01%7Cavnera%40microsoft.com%7C2c7a3e68bfdb410294af08dabd71bcfc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638030593467959246%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=FWXH%2BwaQtfQ6z1b1UMwvGbjZO%2BQk%2B8FDrr49EspOGNg%3D&reserved=0>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
@gil-koifman @avneraa Just to clarify: assuming this is an editor option (noSelectOnTriggerCharacter and noSelectOnQuickSuggest) would you still need the |
@jrieken That depends.. Will "noSelectOnQuickSuggest" take care of this for us? We do still need the ability to manually trigger the completion list using the trigger "editor.action.triggerSuggest", and have the no selection capability with it. |
Yeah, should still be possible. The |
@gjsjohnmurray Will be similar but not a selection mode. It will be an option that's only applicable for auto-suggest (quick suggest and trigger characters) |
…ch makes suggest items not be selected when triggered automatically (quick suggest and trigger characters) #151336
This is done and behind the (non documented) |
To verify
|
@jrieken |
Works as expected -> verified. |
Yeah, for now it is just a monaco editor thing |
@gil-koifman Can you please create a new issue for that. Thanks |
In Kusto we have a desktop tool (http://aka.ms/ke) using Dev Express libraries where the IntelliSense does not pre-select any of the items, and any key that is not alphanumeric dismisses the IntelliSense without committing anything. We find this behavior much more intuitive and friendly for authoring Kusto queries.
Here is an example of the two behaviors:
In Kusto explorer, hitting enter or any other key will dismiss the intellisense:
While in Monaco hitting enter will commit the “and” requiring the user to either hit escape of delete the committed text:
Thanks Avner Aharoni
The text was updated successfully, but these errors were encountered: