Brackets-InteractiveLinter icon indicating copy to clipboard operation
Brackets-InteractiveLinter copied to clipboard

Lost undo history after save

Open hyuan opened this issue 9 years ago • 5 comments

If I save the file I can't undo the last modifications.

How to reproduce:

  • Make some changes
  • save
  • try to undo

If I disable this extension, then the problem is gone.

Brackets Version: Release 1.5 build 1.5.0-16538 (release cf9cf4698) Brackets-InteractiveLinter Version: 1.0.5 OS: Windows 10 Other installed extensions:

  • Extract for Brackets
  • Beautify
  • Exclude Folders
  • Integrated Development
  • Theseus for Brackets

hyuan avatar Jan 17 '16 04:01 hyuan

Yuck- sorry about this! It's a rather odd behavior I don't know how it could happen just yet. What linter do you have configured? I am assuming you were working on a JS file. Is that correct?

MiguelCastillo avatar Jan 17 '16 13:01 MiguelCastillo

The problem happens to both JS and HTML files at least. Here is my configure file:

{
    "node": true,
    "esnext": true,
    "bitwise": true,
    "camelcase": true,
    "curly": true,
    "eqeqeq": true,
    "immed": true,
    "indent": 4,
    "latedef": true,
    "newcap": true,
    "noarg": true,
    "quotmark": "single",
    "regexp": true,
    "undef": true,
    "unused": true,
    "strict": true,
    "trailing": true,
    "smarttabs": true,
    "white": true,
    "predef": ["angular"]
}

hyuan avatar Jan 17 '16 18:01 hyuan

After I added the following lines in brackets.json, the issue is gone:

{
    ...
    "linting.prefer": [
      "JSHint",
      "JSCS"
    ],
    "linting.usePreferredOnly": true,
    ...
}

Could it be a conflict between the extension and the default of JSLint?

hyuan avatar Jan 18 '16 00:01 hyuan

Hmmmm, I disable the built-in JS linter to avoid wasting valuable cycles... But this at least gives me some ideas to go on. Really appreciate your research :)

MiguelCastillo avatar Jan 18 '16 00:01 MiguelCastillo

It happens after I updated brackets to 1.6 .

blackmiaool avatar Mar 14 '16 08:03 blackmiaool