mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Move storage for VFS into editor document
The invocation options are not an appropriate place to put this state, since it can change between requests. This moves it to the editor document, allowing us to change the specific VFS instance without causing a rebuild (unless the contents/timestamps for a dependency change).
This commit is contained in:
@@ -775,7 +775,8 @@ void SwiftLangSupport::editorOpenSwiftSourceInterface(StringRef Name,
|
||||
auto AstConsumer = std::make_shared<PrimaryFileInterfaceConsumer>(Name,
|
||||
SourceName, IFaceGenContexts, Consumer, Invocation);
|
||||
static const char OncePerASTToken = 0;
|
||||
getASTManager()->processASTAsync(Invocation, AstConsumer, &OncePerASTToken);
|
||||
getASTManager()->processASTAsync(Invocation, AstConsumer, &OncePerASTToken,
|
||||
llvm::vfs::getRealFileSystem());
|
||||
}
|
||||
|
||||
void SwiftLangSupport::editorOpenHeaderInterface(EditorConsumer &Consumer,
|
||||
|
||||
Reference in New Issue
Block a user