-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Fix-Its should be phrased as imperative actions rather than questions #67510
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
Comments
Tracked in Apple’s issue tracker as rdar://112830935 |
I have been moving in the same direction of imperative Fix-It messages in new parser (https://github.com/apple/swift-syntax/blob/1a594a6296de3964756835bd57599f9c28c40229/Sources/SwiftParserDiagnostics/ParserDiagnosticMessages.swift#L582-L629) so I support the direction. All these Fix-It messages are coming from the compiler, so I’m moving the issue to that repo. But just to set expectations, I don’t expect all the compiler Fix-It messages to get updated in the near future. |
Sounds good, thank you! Other messages here start with a capital letter but |
@nishithshah2211's interested in taking a look at this! |
Should we make a list of messages worded like this? I could maybe try and rewrite a few of them |
Actually now that i think about it, where are this messages defined, anyways? |
All of the diagnostic messages are located in https://github.com/apple/swift/tree/main/include/swift/AST in various |
…se fixits This commit changes fixit messages from a question/suggestion to an imperative message for protocol conformances and switch-case. Addresses swiftlang#67510.
…se fixits This commit changes fixit messages from a question/suggestion to an imperative message for protocol conformances and switch-case. Addresses swiftlang#67510.
Is there any work remaining on this issue -- I can see it's still open but there's a merged PR? I'm just looking for a simple first issue to tackle :) |
Swift phrases quick fixes as questions:
This is inconsistent with other extensions and code actions, which are phrased as imperative verbs:
The text was updated successfully, but these errors were encountered: