mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sourcekitd] Fix potential race in semantic highlighting tests
In order to make range-shifting for semantic highlighting testable, disable returning semantic information during an "open" request. This has no real value anyway, since it only happens very rarely, and it makes testing range shifting impossible to do deterministically. rdar://problem/66386179
This commit is contained in:
@@ -109,7 +109,7 @@ public:
|
||||
void parse(ImmutableTextSnapshotRef Snapshot, SwiftLangSupport &Lang,
|
||||
bool BuildSyntaxTree,
|
||||
swift::SyntaxParsingCache *SyntaxCache = nullptr);
|
||||
void readSyntaxInfo(EditorConsumer &consumer);
|
||||
void readSyntaxInfo(EditorConsumer &consumer, bool ReportDiags);
|
||||
void readSemanticInfo(ImmutableTextSnapshotRef Snapshot,
|
||||
EditorConsumer& Consumer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user