Lines Matching defs:LSP
175 // There is no 'Macro' kind in LSP.
1094 // The activeParameter in LSP relates to the activeSignature. There is
1573 // These items are scored, and the top N are synthesized into the LSP response.
2361 CompletionItem LSP;
2365 LSP.label = ((InsertInclude && InsertInclude->Insertion)
2370 LSP.labelDetails.emplace();
2371 LSP.labelDetails->detail = Signature;
2373 LSP.kind = Kind;
2374 LSP.detail = BundleSize > 1
2377 LSP.deprecated = Deprecated;
2378 // Combine header information and documentation in LSP `documentation` field.
2386 LSP.documentation = renderDoc(Doc, Opts.DocumentationFormat);
2388 LSP.sortText = sortText(Score.Total, FilterText);
2389 LSP.filterText = FilterText;
2390 LSP.textEdit = {CompletionTokenRange, RequiredQualifier + Name, ""};
2392 // behind this is to help LSP clients, it seems most of them are confused when
2396 // is mainly to help LSP clients again, so that changes do not effect each
2399 if (FixIt.range.end == LSP.textEdit->range.start) {
2400 LSP.textEdit->newText = FixIt.newText + LSP.textEdit->newText;
2401 LSP.textEdit->range.start = FixIt.range.start;
2403 LSP.additionalTextEdits.push_back(FixIt);
2407 LSP.textEdit->newText += SnippetSuffix;
2411 LSP.insertText = LSP.textEdit->newText;
2415 LSP.insertTextFormat = (Opts.EnableSnippets && !SnippetSuffix.empty())
2419 LSP.additionalTextEdits.push_back(*InsertInclude->Insertion);
2421 LSP.score = Score.ExcludingName;
2423 return LSP;