mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix compilation of sourcekit unit tests after VFS changes
This commit is contained in:
@@ -132,7 +132,7 @@ public:
|
||||
auto Args = CArgs.hasValue() ? makeArgs(DocName, *CArgs)
|
||||
: std::vector<const char *>{};
|
||||
auto Buf = MemoryBuffer::getMemBufferCopy(Text, DocName);
|
||||
getLang().editorOpen(DocName, Buf.get(), Consumer, Args);
|
||||
getLang().editorOpen(DocName, Buf.get(), Consumer, Args, llvm::vfs::getRealFileSystem());
|
||||
}
|
||||
|
||||
void replaceText(StringRef DocName, unsigned Offset, unsigned Length,
|
||||
@@ -148,6 +148,7 @@ public:
|
||||
|
||||
TestCursorInfo TestInfo;
|
||||
getLang().getCursorInfo(DocName, Offset, 0, false, false, Args,
|
||||
llvm::vfs::getRealFileSystem(),
|
||||
[&](const RequestResult<CursorInfoData> &Result) {
|
||||
assert(!Result.isCancelled());
|
||||
if (Result.isError()) {
|
||||
|
||||
Reference in New Issue
Block a user