79581837

Date: 2025-04-18 22:51:08
Score: 1
Natty:
Report link

yes as @boocs stated
you need to await both textEditor.edit() and replaceText()

you don't need to refresh textEditor between each replaceText() call
however you do need to refresh textEditor between each DoIt() call
as currently you're only getting the activeTextEditor when starting the extension
so it wont work when switching documents

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @boocs
  • Low reputation (0.5):
Posted by: RedCMD