Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost undo history after save #171

Open
hyuan opened this issue Jan 17, 2016 · 5 comments
Open

Lost undo history after save #171

hyuan opened this issue Jan 17, 2016 · 5 comments

Comments

@hyuan
Copy link
Contributor

hyuan commented Jan 17, 2016

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
@MiguelCastillo
Copy link
Owner

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?

@hyuan
Copy link
Contributor Author

hyuan commented Jan 17, 2016

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
Copy link
Contributor Author

hyuan commented Jan 18, 2016

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?

@MiguelCastillo
Copy link
Owner

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 :)

@blackmiaool
Copy link

It happens after I updated brackets to 1.6 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants