mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user