Skip to content

在vscode中,自动保存的时候,部分代码会丢失 #1093

@DaChuanHaiyanZhang

Description

@DaChuanHaiyanZhang

Describe the bug
在vscode中保存代码使用自动修复,部分代码会丢失不知道时什么原因导致。

Source

<style>
  .{{classname}} {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  {% if title != blank %}
    .{{classname |  append: '-title'}} {
      font-size: 40px;
      color: #271E1E;
      font-weight: 700;
      margin-bottom: 0;
      line-height: 1.2;
      text-align: center; 
    }
  {% endif %}

  {% if description != blank %}
    .{{classname |  append: '-desc'}} {
      font-size: 12px;
      color: #271E1E;
      text-align: center;
    }
  {% endif %}

  {% if img_object != blank %}
    .{{classname |  append: '-img'}} {
      width: 100%;
    }
  {% endif %}
</style>

Expected behaviour
在vscode中保存代码使用自动修复,部分代码会丢失不知道时什么原因导致。

Actual behaviour

Debugging information

  • Windows 11
  • Theme Check Version 3.10.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions