-
Notifications
You must be signed in to change notification settings - Fork 40
Exclude expected completions in a couple of places #273
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
Conversation
706087a to
293308e
Compare
|
Stress tester ran on swiftlang/swift#58827 |
SourceKitStressTester/Sources/StressTester/ActionGenerators.swift
Outdated
Show resolved
Hide resolved
| // FIXME: We ought to have this be configurable and enable it for the stress | ||
| // tester. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you remember how the compiler skips these. IIRC it’s looking for #file or #line default argument values. Which unfortunately we can’t do here, so maybe this is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's done here, IMO it would be nice to have a mode where it still includes them just for the stress tester since we otherwise can't handle them properly in the general case. #file and #line were the only ones that the new revision of swift-power-assert ran into though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add a sourcekitd option for it, I wouldn’t have any objections to it.
SourceKitStressTester/Sources/StressTester/SourceKitDocument.swift
Outdated
Show resolved
Hide resolved
We don't provide default argument completions for `#file` and `#line`, for now let's skip matching `file` and `line` as argument labels.
Don't check completions for e.g `@_spi` or its arguments.
293308e to
1548bf0
Compare
|
@swift-ci please test |
Avoid matching expected completions for underscored attributes and skip matching
fileandlineas argument labels since we skip#fileand#linedefault args for completion. This is necessary to fix the stress tester for the recently updated revision of swift-power-assert.