mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-22 00:19:28 +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)
|
for (size_t i = 0; i < items.size(); ++i)
|
||||||
items[i].sortText = tofixedbase64(i, buf);
|
items[i].sortText = tofixedbase64(i, buf);
|
||||||
|
|
||||||
// FIXME
|
const size_t kMaxResultSize = 100u;
|
||||||
// The trigger behivour of vscode is puzzling.
|
if (items.size() > kMaxResultSize) {
|
||||||
// So maybe it's not feasible to cut out any results.
|
items.resize(kMaxResultSize);
|
||||||
// const size_t kMaxResultSize = 100u;
|
complete_response->result.isIncomplete = true;
|
||||||
// if (items.size() > kMaxResultSize)
|
}
|
||||||
// items.resize(kMaxResultSize);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct TextDocumentCompletionHandler : MessageHandler {
|
struct TextDocumentCompletionHandler : MessageHandler {
|
||||||
|
3
wscript
3
wscript
@ -182,6 +182,9 @@ def configure(ctx):
|
|||||||
if 'release' in ctx.options.variant:
|
if 'release' in ctx.options.variant:
|
||||||
cxxflags.append('-O' if 'asan' in ctx.options.variant else '-O3')
|
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
|
ctx.env.CXXFLAGS = cxxflags
|
||||||
if not ctx.env.LDFLAGS:
|
if not ctx.env.LDFLAGS:
|
||||||
ctx.env.LDFLAGS = ldflags
|
ctx.env.LDFLAGS = ldflags
|
||||||
|
Loading…
Reference in New Issue
Block a user