[Lldb-commits] [PATCH] D69873: [lldb-vscode] support the completion request

walter erquinigo via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 5 17:43:51 PST 2019


wallace created this revision.
wallace added reviewers: clayborg, aadsm.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
wallace edited the summary of this revision.

The DAP has a completion request that has been unimplemented. It allows showing autocompletion tokens inside the Debug Console.
I implemented it in a very simple fashion mimicking what the user would see when autocompleting an expression inside the CLI.
There are two cases: normal variables and commands. The latter occurs when a text is prepepended with ` in the Debug Console.
These two cases work well and have tests.

F10634758: image.png <https://reviews.llvm.org/F10634758>
F10634762: image.png <https://reviews.llvm.org/F10634762>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69873

Files:
  lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/completions/Makefile
  lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/completions/TestVSCode_completions.py
  lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/completions/main.cpp
  lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/lldbvscode_testcase.py
  lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/variables/TestVSCode_variables.py
  lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
  lldb/tools/lldb-vscode/lldb-vscode.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69873.227987.patch
Type: text/x-patch
Size: 14418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191106/a37306a1/attachment-0001.bin>


More information about the lldb-commits mailing list