-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
Added spacing when toggling block comments in JavaScript #30656
Comments
@mjbvz If no one is working on this already I will investigate and do a PR. |
Thanks. Confirmed that this is not js specific. The same issue also shows up in c files and other language types |
@mjbvz I think this was introduced June eighth with
|
@rebornix public static _createRemoveBlockCommentOperations(r: Range, startToken: string, endToken: string): editorCommon.IIdentifiedSingleEditOperation[] {
Personally I don't think it's a good idea to do these mathematics, you would need fix ups Shouldn't the space be part of the tokens? Let me know how you want to handle it and I will do a PR |
@rebornix |
Fixed with PR #30818 |
When toggling and untoggling block comments in JavaScript (I haven't tested other languages), extra spaces are added to the beginning and end of the block each time.
This did not happen in the previous version of VSCode.
Steps to Reproduce:
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: