mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CodeCompletion] Use the arguments to check the equality of the invocation
Checking "selected" properties of CompilerInvocation is hard to keep it up to date. If the arguments are the same, the invocations are the same.
This commit is contained in:
@@ -80,7 +80,7 @@ static bool swiftConformingMethodListImpl(
|
||||
// Pin completion instance.
|
||||
auto CompletionInst = Lang.getCompletionInstance();
|
||||
CompilerInstance *CI = CompletionInst->getCompilerInstance(
|
||||
Invocation, FileSystem, newBuffer.get(), Offset, Error, &CIDiags);
|
||||
Invocation, Args, FileSystem, newBuffer.get(), Offset, Error, &CIDiags);
|
||||
if (!CI)
|
||||
return false;
|
||||
SWIFT_DEFER { CI->removeDiagnosticConsumer(&CIDiags); };
|
||||
|
||||
Reference in New Issue
Block a user