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
Tweak undo behaviour when having commit characters #44155
Comments
Yeah, that's the design of the API - define data contracts and interactions but don't mention the UI. This gives us freedom to redefine the UI without changing extensions and therefore it's unlikely this will happen any time soon. I wonder what you are trying to achieve and 'later use' is for? There might another way to achieve what you want. For instance a completion command could be used for this... |
It's fair to abstract away the actual UI, but my suggestion is really not about the UI, it's about the auto-completion suggestions themselves. I want to identify the selectedSuggestion, for 2 reasons:
In my case, I save the suggestion for later use in order to implement the accept and type character with an undo order like Visual Studio. That way the user can undo the accepted suggestion if they didn't want it, they actually wanted the key they typed (as in VS). You can see this at work in my extension. In order to get that 'proper' undo order, I have to type the accept character, and then insert the suggestion, by which time VSCode's suggestion widget is no longer open. Thanks for your consideration! |
Hm... Isn't that very similar to the built-in feature of accept-characters? Check the |
2 things missing from this feature:
|
@mjbvz This seems to be a bug in TypeScript/JavaScript
That's a good suggestion and something we can tweak |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Hello, Was there any information that was being waited on, or has this suggestion been rejected? |
Yeah, over-eager bot |
Issue Type
Feature Request
Description
The suggestions and suggestion widget of VSCode Intellisense is inaccessible to extension API. In order to capture the suggestion for later use, I must do the following:
Which is silly, it should just be like:
let suggestion = vscode.window.activeTextEditor.suggestionWidget.suggestion
Furthermore, I can't check the type of suggestion. In my case, I'd like to defend against snippets and bypass my logic in that case.
VS Code Info
VS Code version: Code - Insiders 1.21.0-insider (70e020b, 2018-02-15T05:17:01.988Z)
OS version: Windows_NT x64 10.0.16299
The text was updated successfully, but these errors were encountered: