Fix signature help for calls prefixed by a namespace

This commit is contained in:
Jacob Dufault 2017-05-15 00:37:47 -07:00
parent 6ad60c4299
commit b727fc5a36

View File

@ -1616,9 +1616,6 @@ bool QueryDbMainLoop(
if (file) { if (file) {
lsPosition completion_position; lsPosition completion_position;
search = file->FindClosestCallNameInBuffer(params.position, &active_param, &completion_position); search = file->FindClosestCallNameInBuffer(params.position, &active_param, &completion_position);
// Move completion position back by one; completer will automatically increment it by one to deal with -> and . accesses.
if (completion_position.character > 0)
completion_position.character -= 1;
std::cerr << "[completion] Changing completion position from " << params.position.ToString() << " to " << completion_position.ToString() << std::endl; std::cerr << "[completion] Changing completion position from " << params.position.ToString() << " to " << completion_position.ToString() << std::endl;
params.position = completion_position; params.position = completion_position;
} }