You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Omnisharp-vscode can accept suggestions while also insert certain characters, like Cons will insert Consoleand insert a . when the dot-character is pressed. This has been "implemented" via keybindings. Mea culpa
The keybindings "implementation" has its weakness and in the meantime VS Code as an API for commit characters. In short, when creating a completion item you can assign it a set of commit characters:
item1=newCompletionItem('Console')item1.commitCharacters=['.'];// no '(' because Console cannot be calleditem2=newCompletionItem('SomeMethod')item2.commitCharacters=['(']// can be called// etc
The text was updated successfully, but these errors were encountered:
jrieken
changed the title
Adopt new auto characters
Adopt new auto commit characters for completion items
May 17, 2017
@jrieken: Nice! Does the API tell us what character actually caused the completion item to commit? In VS, there are cases where completion can commit differently depending on what character is pressed.
Omnisharp-vscode can accept suggestions while also insert certain characters, like
Cons
will insertConsole
and insert a.
when the dot-character is pressed. This has been "implemented" via keybindings. Mea culpaThe keybindings "implementation" has its weakness and in the meantime VS Code as an API for commit characters. In short, when creating a completion item you can assign it a set of commit characters:
The text was updated successfully, but these errors were encountered: