mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #82464 from a7medev/feat/full-documentation-in-code-completion
[IDE] Add full documentation to code completion result
This commit is contained in:
@@ -139,9 +139,9 @@ bool SourceKit::CodeCompletion::addCustomCompletions(
|
||||
ContextFreeNotRecommendedReason::None,
|
||||
CodeCompletionDiagnosticSeverity::None, /*DiagnosticMessage=*/"");
|
||||
auto *swiftResult = new (sink.allocator) CodeCompletion::SwiftResult(
|
||||
*contextFreeResult, SemanticContextKind::Local,
|
||||
CodeCompletionFlairBit::ExpressionSpecific,
|
||||
/*NumBytesToErase=*/0, CodeCompletionResultTypeRelation::Unrelated,
|
||||
*contextFreeResult, /*DeclOrCtx=*/nullptr, SemanticContextKind::Local,
|
||||
CodeCompletionFlairBit::ExpressionSpecific, /*NumBytesToErase=*/0,
|
||||
CodeCompletionResultTypeRelation::Unrelated,
|
||||
ContextualNotRecommendedReason::None);
|
||||
|
||||
CompletionBuilder builder(sink, *swiftResult);
|
||||
@@ -1154,10 +1154,10 @@ Completion *CompletionBuilder::finish() {
|
||||
contextFreeBase.getKind(),
|
||||
contextFreeBase.getOpaqueAssociatedKind(), opKind,
|
||||
contextFreeBase.getMacroRoles(), contextFreeBase.isSystem(),
|
||||
contextFreeBase.hasAsyncAlternative(),
|
||||
newCompletionString, contextFreeBase.getModuleName(),
|
||||
contextFreeBase.hasAsyncAlternative(), newCompletionString,
|
||||
contextFreeBase.getModuleName(),
|
||||
contextFreeBase.getBriefDocComment(),
|
||||
contextFreeBase.getAssociatedUSRs(),
|
||||
contextFreeBase.getAssociatedUSRs(), contextFreeBase.getSwiftUSR(),
|
||||
contextFreeBase.getResultType(),
|
||||
contextFreeBase.getNotRecommendedReason(),
|
||||
contextFreeBase.getDiagnosticSeverity(),
|
||||
|
||||
Reference in New Issue
Block a user