sfmc-devtools icon indicating copy to clipboard operation
sfmc-devtools copied to clipboard

[BUG] max line width breaks ampscript code in assets

Open JoernBerkefeld opened this issue 2 months ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

saw it happening with contentblockbyname which tends to have a very longer argument.

Expected Behavior

ampscript code does not get auto-line breaks applied

Steps To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Run '...'
  4. See error...

Version

6.0.2

Environment

  • OS:
  • Node:
  • npm:

Participation

  • [X] I am willing to submit a pull request for this issue.

Additional comments

No response

JoernBerkefeld avatar Apr 08 '24 17:04 JoernBerkefeld

could be fixed by changing .vscode/settings.json:

    "files.associations": {
        "*.html": "AMPscript"
    },
    "[html]": {
        "editor.defaultFormatter": "FiB.beautyAmp"
    },

that way, we no longer apply prettier settings but instead run beautyAmp on the code. tested this myself already and it seems to work

JoernBerkefeld avatar Apr 09 '24 06:04 JoernBerkefeld

tracked in

  • https://github.com/FiB3/beautyAmpCore2/issues/4

JoernBerkefeld avatar Apr 10 '24 12:04 JoernBerkefeld

Closed by #1341.

github-actions[bot] avatar May 22 '24 10:05 github-actions[bot]