Skip to content

Disable inner code completion results (+ a little refactoring) #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ class SourceKitDocument {
completionOptions.add(.key_HideLowPriority, value: 0)
completionOptions.add(.key_HideByName, value: 0)
completionOptions.add(.key_HideUnderscores, value: 0)
// Disable inner results because they might cause a second completion to occur in SourceKit, slowing down the measurements.
completionOptions.add(.key_AddInnerResults, value: 0)
completionOptions.add(.key_AddInnerOperators, value: 0)

// Set expected results to 200 to avoid inflating the time measurements by serialization time.
// To make sure that the expected result is in the results, filter by its base name.
Expand Down
183 changes: 0 additions & 183 deletions SourceKitStressTester/Sources/SwiftSourceKit/SwiftSourceKit.swift

This file was deleted.

Loading