[CodeComplete] Add option to add calls with no defaults (or not)

Now that arguments are marked up with whether they have a default or
not, clients may not need the extra call (that has no default
arguments). Add an option to allow not adding this item.

Resolves rdar://85526214.
This commit is contained in:
Ben Barham
2021-12-02 14:30:10 +10:00
parent 4187875ac6
commit 65ef8020de
8 changed files with 90 additions and 63 deletions

View File

@@ -107,6 +107,7 @@ static void swiftCodeCompleteImpl(
CompletionContext.setIncludeObjectLiterals(opts.includeObjectLiterals);
CompletionContext.setAddInitsToTopLevel(opts.addInitsToTopLevel);
CompletionContext.setCallPatternHeuristics(opts.callPatternHeuristics);
CompletionContext.setAddCallWithNoDefaultArgs(opts.addCallWithNoDefaultArgs);
Lang.performWithParamsToCompletionLikeOperation(
UnresolvedInputFile, Offset, Args, FileSystem, CancellationToken,