Skip to content
  • Nikolai Kosjar's avatar
    CodeAssist: Do not retrigger completion when applying a snippet · e8ce2e62
    Nikolai Kosjar authored
    
    
    This fixes the following case for the ClangCodeModel:
    
     1. Trigger non-member/non-prefix completion.
     2. Choose the generic "class" snippet.
        --> The snippet is inserted, cursor is right after "name", but it
            also triggers another completion that proposes e.g. the "namespace"
            snippet.
    
    This does not happen with the built-in code model because at that cursor
    position it provides "name" as completion result, which is a perfect
    match and thus suppresses the completion list.
    
    Change-Id: I2f797469b2a0952406b50c28f9704b113e19b16d
    Reviewed-by: default avatarIvan Donchevskii <ivan.donchevskii@qt.io>
    Reviewed-by: default avatarDavid Schulz <david.schulz@qt.io>
    e8ce2e62