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
Inline Completions: Accept Next Word Should Also Split By Whitespace #167637
Comments
This is by design. Either the immediate next word is taken or all the text until the next word. Maybe this should be adjusted, but that depends on how this feature is being used. |
Ah yes it makes sense once you explain it. I feel like the For example if I wanted that line to say I think either way is fine, it is more just a preference thing and people will quickly adapt to the design as they start using it. |
We could additionally split by whitespace, let me reopen this issue for that. |
@eleanorjboyd can you verify the fix? Thanks! |
Looks great! Thanks for the fix! |
found from TPI: #167421
When I am using Typescript, there is a bit of inconsistency with how it defines a "single word". I am not sure if this is intention behavior that I am seeing for which characters get group together or not. For example the chunks for the following text:
for (const workspace of this.workspaceService.workspaceFolders || []) {
it is grouped like so:
for
(
const
workspace
of
this
.
workspaceService
.
workspaceFolders
|| []) {
Where
|| []) {
is much longer and contains spaces.Not sure what desired behavior is so this could also be expected behavior but wanted to point it out in case there was any inconsistency. Thanks!
The text was updated successfully, but these errors were encountered: