You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When sorting imports during formatting comments belong to the import doesn't move.
Steps to reproduce:
Format the following code
// This example imports a module. You can only refer to the public symbols of// an imported module.importballerina/math;
// Declare an explicit alias.importballerina/ioasconsole;
publicfunction main() {
// Refer symbols of another module.// `math:PI` is a qualified identifier. Note the usage of the module alias.float piValue =math:PI;
// Use the explicit alias `console` to invoke a function defined in the `ballerina/io` module.console:println(piValue);
}
see the imports have sorted but the comments were not moved with the import
// This example imports a module. You can only refer to the public symbols of// an imported module.importballerina/ioasconsole;
// Declare an explicit alias.importballerina/math;
publicfunction main() {
// Refer symbols of another module.// `math:PI` is a qualified identifier. Note the usage of the module alias.float piValue =math:PI;
// Use the explicit alias `console` to invoke a function defined in the `ballerina/io` module.console:println(piValue);
}
Affected Versions:
1.2.0
The text was updated successfully, but these errors were encountered:
This issue is no longer applicable since the reordering of imports is not supported in the new Swan Lake formatter.
However, we have a new feature issue #26617 for the organization of imports. We should ensure this bug is not resurfaced during the new implementation.
Closing this issue since it is not applicable with the current implementation.
Description:
When sorting imports during formatting comments belong to the import doesn't move.
Steps to reproduce:
Affected Versions:
1.2.0
The text was updated successfully, but these errors were encountered: