mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-21 07:59:27 +00:00
Reuse isIncomplete.
Add -fno-limit-debug-info for debugging.
This commit is contained in:
parent
dbdab02ff4
commit
be1ed58fc5
@ -177,12 +177,11 @@ void FilterAndSortCompletionResponse(
|
||||
for (size_t i = 0; i < items.size(); ++i)
|
||||
items[i].sortText = tofixedbase64(i, buf);
|
||||
|
||||
// FIXME
|
||||
// The trigger behivour of vscode is puzzling.
|
||||
// So maybe it's not feasible to cut out any results.
|
||||
// const size_t kMaxResultSize = 100u;
|
||||
// if (items.size() > kMaxResultSize)
|
||||
// items.resize(kMaxResultSize);
|
||||
const size_t kMaxResultSize = 100u;
|
||||
if (items.size() > kMaxResultSize) {
|
||||
items.resize(kMaxResultSize);
|
||||
complete_response->result.isIncomplete = true;
|
||||
}
|
||||
}
|
||||
|
||||
struct TextDocumentCompletionHandler : MessageHandler {
|
||||
|
3
wscript
3
wscript
@ -182,6 +182,9 @@ def configure(ctx):
|
||||
if 'release' in ctx.options.variant:
|
||||
cxxflags.append('-O' if 'asan' in ctx.options.variant else '-O3')
|
||||
|
||||
if ctx.env.CXX_NAME == 'clang' and 'debug' in ctx.options.variant:
|
||||
cxxflags.append('-fno-limit-debug-info')
|
||||
|
||||
ctx.env.CXXFLAGS = cxxflags
|
||||
if not ctx.env.LDFLAGS:
|
||||
ctx.env.LDFLAGS = ldflags
|
||||
|
Loading…
Reference in New Issue
Block a user