question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Saving files affects the file history

See original GitHub issue

Please fill-in this template.

  • I have a question that is specific to this extension; thus, inappropriate for the main EditorConfig issue tracker.
  • I tried running code --disable-extensions and the issue did NOT present itself.

Issue

Visual Studio Code editorconfig-vscode
Version 1.50.1-1 v0.15.1

Root .editorconfig File

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2

Are there any other relevant .editorconfig files in your project? Yes / No

Visual Studio Code Setting Default User Workspace
editor.insertSpaces true ____ ____
editor.tabSize 4 2 _
editor.trimAutoWhitespace true ____ ____
files.autoSave "off" "___" "___"
files.insertFinalNewline false _____ _____
files.trimTrailingWhitespace false _____ _____

File opened

All files

Expected behavior

Only affect file history (undo/redo) when the file is actually changed.

Actual behavior

Each save, even if nothing is changed, adds an entry to the file history. So if i make a change, press CTRL+S then make another change, I have to press CTRL+Z 3 times to undo both changes. If I press CTRL+S 10 times I have to press CTRL+Z 12 times to undo both changes.

Additional comments or steps to reproduce

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mathiasvrcommented, Nov 25, 2020

@jedmao Thanks works perfectly now.

1reaction
venomtmcommented, Oct 29, 2020

Hi!

I can confirm that this is the case for me as well 😃.

Although, that parameter has been in my .editorconfig-file for quite some time now without those problems before.

Regards, Mikael

Read more comments on GitHub >

github_iconTop Results From Across the Web

File History - Behavior for new or changed files when external ...
I'm running Windows 10, and recently started using File History. It seems to work fine using my external hard drive, including doing incremental ......
Read more >
How to back up files with Windows 10's File History - PCWorld
Windows 10's File History is an easy way to get started with backing up your personal files since it comes built-in to your...
Read more >
Thinking About Windows 10 File History - Thurrott.com
The new File History requieres a secondary storage and only saves previous versions of speficic folders, not the entire hard disk. I active ......
Read more >
How exactly does File History work in Windows 10 and later?
So essentially Windows 10 File History is a glorified scheduled backup rather than version control on a file that changes.
Read more >
Beginner's Guide: How to Use File History Windows 10
File History backs up files automatically and keeps a history of all your changes. Only to note that File History only backs up...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found