"Organize imports" eats comments
DRANK
🔎 Search Terms source.organizeImports, VSCode, "source action", semicolon, remove, change 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries about organize imports ⏯ Playground Link https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAcgM4RAUxgC2AOwOYIBQA9MXAMaro4yEDcQA 💻 Code import 'something' // comment ; 🙁 Actual behavior When organizing inputs in the given file, the output is this: import 'something'; 🙂 Expected behavior I expected the comment to be preserved. Additional information about the issue The semicolon is important here. Without it the comment is preserved. #48126 is perhaps tangentially related.
1 comments
👀👀👀�github.com/microsoft/Type…b1