Open Alon122 opened 3 weeks ago
@Alon122 have you tried v1.9.0, I made an update and run the tests.
Can you show me the file, as small as possible, you want to remove the comments of. Just fill in some dummy texts
The changes in v1.10.0 should only impact SASS, Jade, Pug files
@Alon122 have you tried v1.9.0, I made an update and run the tests.
Can you show me the file, as small as possible, you want to remove the comments of. Just fill in some dummy texts
Its working now, i don't know what happened
@Alon122 Just show an example next time the extension gives wrong results
@rioj7 Hey man, its removing links now
@Alon122 You have a very large file. The extension does not remove true comments like on line 1588
// Adjust width on load
That can only happen if somewhere before line 1588 you don't have closed a string properly with "
as separator.
The extension thinks it is still parsing a string.
VSC syntax highlighting is not as strict as the extension regarding string termination on the same line for certain separators.
Maybe I should add logic that certain strings must end at the line ending.
@Alon122 If you select function fetchSkinIcon
and then execute Remove All Comments does it also remove the link inside the string on line 1604
@Alon122 If I try to recreate an unterminated string literal the Typescript Language server will signal that. And because you have no errors reported that is not the case.
Another possibility is that you have a Regular Expression literal /some_regex/
that contains an odd number of string delimiter characters like "
.
@Alon122 Have you found the line that is putting the parser in an incorrect state?
There isn't one, idk man
@Alon122 There has to be because line 1588 should be modified, please try with sections started from the top and look if some comments are removed that are trivial. Use a binary search method.
The extantion is not working anymore