[lldb] Allow partial completions to fix directory completion.
authorRaphael Isemann <teemperor@gmail.com>
Tue, 27 Aug 2019 11:32:22 +0000 (11:32 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 27 Aug 2019 11:32:22 +0000 (11:32 +0000)
commit5edee822d2f80e23c9e465394bac6d9c31468406
treeae5e04768f5a6f64bab9f0786945e12f0d330f2d
parentb1f29cec251188a594148f7a53d063281d4ef155
[lldb] Allow partial completions to fix directory completion.

On the command line we usually insert a space after a completion to indicate that
the completion was successful. After the completion API refactoring, this also
happens with directories which essentially breaks file path completion (as
adding a space terminates the path and starts a new arg). This patch restores the old
behavior by again allowing partial completions. Also extends the iohandler
and SB API tests as the implementation for this is different in Editline
and SB API.

llvm-svn: 370043
lldb/include/lldb/Utility/CompletionRequest.h
lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
lldb/source/Commands/CommandCompletions.cpp
lldb/source/Host/common/Editline.cpp