codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

Adding the backtick character in javascript code breaks codemaid cleanup

Open craiggeil opened this issue 1 year ago • 4 comments

Environment

  • Visual Studio version: 2022 Community
  • CodeMaid version: 12.0
  • Code language: javascript

Description

Adding the backtick (`) character in javascript code breaks codemaid cleanup

Steps to recreate

Current behavior

Cleanup fails

Expected behavior

Should not break cleanup

craiggeil avatar Nov 21 '23 21:11 craiggeil

Thanks for reporting the issue. I have not been able to reproduce it. Can you please provide a minimal solution or code sample that exhibits the issue?

codecadwallader avatar Nov 24 '23 18:11 codecadwallader

Create a file called test.vue and add this code:

*.vue files always work with CodeMaid. For some reason this time it fails. I don't use any other formatter for any files. I'm using Visual Studio 2022 Community. Take out the acFormat variable and it starts working again.

craiggeil avatar Nov 26 '23 11:11 craiggeil

Oh darn, the markdown eliminated the my code because I'm using backticks..lol. Let me try to upload a screenshot 2023-11-26 06 38 45

craiggeil avatar Nov 26 '23 11:11 craiggeil

Looks like double curly braces cause the same problem. Might be related?

const acFormat = "{{typeId}} {{Name}} ({{RequestType}})";

craiggeil avatar Jan 02 '24 18:01 craiggeil