iljapostnovs / VSCodeUI5Plugin

Visual Studio Code Extension for UI5 Development
Apache License 2.0
61 stars 6 forks source link

Bug: XML formatter does remove escape characters #407

Closed daletman closed 5 months ago

daletman commented 5 months ago

Describe the bug The XML formatter does change escaped single quotes.

To Reproduce Steps to reproduce the behavior:

  1. Open a xml view
    <m:DatePicker
    value="{
    type: 'sap.ui.model.type.Date',
    formatOptions: {
      style: 'medium',
      source: {
        pattern: 'yyyy-MM-dd\'T\'hh:mm:ssXXX'
      } 
    }
    }"
    />
  2. Format Document with SAPUI5
  3. The \' in the pattern will be replaced with ' only

Expected behavior The escape character should not be removed.

iljapostnovs commented 5 months ago

Hi! Thanks for bug report. Please check if v1.18.1 is working for you.