Showing the first func def in the preview window
This commit is contained in:
parent
55267ceb5c
commit
0da734d393
@ -108,19 +108,14 @@ std::vector< CompletionData > ToCompletionDataVector(
|
|||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::string possible_newline =
|
|
||||||
completions[ index ].detailed_info_.empty() ?
|
|
||||||
"" :
|
|
||||||
"\n";
|
|
||||||
|
|
||||||
// If we have already seen this completion, then this is an overload of a
|
// If we have already seen this completion, then this is an overload of a
|
||||||
// function we have seen. We add the signature of the overload to the
|
// function we have seen. We add the signature of the overload to the
|
||||||
// detailed information.
|
// detailed information.
|
||||||
completions[ index ].detailed_info_
|
completions[ index ].detailed_info_
|
||||||
.append( possible_newline )
|
|
||||||
.append( data.return_type_ )
|
.append( data.return_type_ )
|
||||||
.append( " " )
|
.append( " " )
|
||||||
.append( data.everything_except_return_type_ );
|
.append( data.everything_except_return_type_ )
|
||||||
|
.append( "\n" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,6 +200,11 @@ CompletionData::CompletionData( const CXCompletionResult &completion_result )
|
|||||||
}
|
}
|
||||||
|
|
||||||
kind_ = CursorKindToVimKind( completion_result.CursorKind );
|
kind_ = CursorKindToVimKind( completion_result.CursorKind );
|
||||||
|
|
||||||
|
detailed_info_.append( return_type_ )
|
||||||
|
.append( " " )
|
||||||
|
.append( everything_except_return_type_ )
|
||||||
|
.append( "\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace YouCompleteMe
|
} // namespace YouCompleteMe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user