[SwiftSyntaxCodeActions] Move SwiftRefactor code actions in from swift-syntax#2671
[SwiftSyntaxCodeActions] Move SwiftRefactor code actions in from swift-syntax#267125harsh wants to merge 1 commit into
Conversation
ahoppen
left a comment
There was a problem hiding this comment.
Thanks for the PR, @25harsh. I have two requests:
- Could you ensure that each file has a trailing newline and that they pass the swift-format check as described in CONTRIBUTING.md?
- Could you also migrate the tests to SourceKit-LSP. If they need some adjustment, that’s fine. I just don’t want to add the refactoring actions here without test coverage.
0ae609b to
8e8a6ce
Compare
|
@ahoppen all changes are done, overloaded |
ahoppen
left a comment
There was a problem hiding this comment.
Thank you. This looks good to me, just one request: Could you create a separate SwiftSyntaxCodeActionsTests target for these new tests? We might want to move more of the existing code action tests to that target in a follow-up PR but I think it would be good to at least not inflate the current SourceKitLSPTests target further.
Also: Could you make sure that all test tests file and with Tests.swift to match the existing naming convention (and yes, I realize that they weren’t suffixed with Tests in swift-syntax but would be a good clean-up step now)
818349c to
e3a8ffd
Compare
|
@ahoppen all changes done, created new target |
|
@swift-ci Please test |
|
@swift-ci Please test Windows |
|
swiftlang/swift-syntax#3345 |
e3a8ffd to
d19dc0b
Compare
|
rebased with main (Sources/SwiftSyntaxCodeActions/CMakeLists.txt conflicted) |
|
swiftlang/swift-syntax#3345 |
|
swiftlang/swift-syntax#3345 |
|
swiftlang/swift-syntax#3345 |
d19dc0b to
9a114c9
Compare
870b034 to
5d8e483
Compare
|
Hey @ahoppen @rintaro, I noticed Windows CI errors related to Note: for |
|
swiftlang/swift-syntax#3345 |
|
@swift-ci Please test Windows |
1 similar comment
|
@swift-ci Please test Windows |
Moved
SyntaxRefactoringProvidertypes mentioned in #2639 out of swift-syntax and intoSources/SwiftSyntaxCodeActions/.Made access specifier changes and dependency changes.
Companion PR #3345
Notes:
Removed compiler(>=6) checks
Ported helpers from
Sources/SwiftRefactor/SyntaxUtils.swifttoSources/SwiftSyntaxCodeActions/SyntaxRefactoringCodeActionProvider.swiftTest cases are yet to be moved.
RemoveSeparatorsFromIntegerLiteral,RemoveRedundantParenthesesandConvertStoredPropertyToComputedneed coverage. (follow-on PRs)Helpers moved
DeclModifierRemover&IntegerLiteralUtilities