fix SourceKit injected VFS with .swiftinterface files

Use `.setFileSystem()` instead of new `setup` method.
This commit is contained in:
marcrasi
2019-05-28 18:19:41 -07:00
committed by Marc Rasi
parent 840f4b90d9
commit eb8f384c01
5 changed files with 17 additions and 17 deletions

View File

@@ -197,7 +197,8 @@ static bool swiftCodeCompleteImpl(
// FIXME: We need to be passing the buffers from the open documents.
// It is not a huge problem in practice because Xcode auto-saves constantly.
if (CI.setup(Invocation, FileSystem)) {
CI.getSourceMgr().setFileSystem(FileSystem);
if (CI.setup(Invocation)) {
// FIXME: error?
return true;
}