Skip to content

Do not invoke completion proposal on statement terminator #1339

Description

@ghentschke

When using the completion proposals on typing (code completion/ content assist):

Image

the proposals are still invoked when a statement terminator (like ;) has been entered.
When pressing enter, the proposal is used an not a new line has been added. See this cdt-lsp issue: eclipse-cdt/cdt-lsp#550

The proposal is valid since in C++ its allowed to start the next statement after a space (see clangd/clangd#2508 (comment))

IMO in 90% the user wants to enter a new line after a ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions