vscode-trailingspaces icon indicating copy to clipboard operation
vscode-trailingspaces copied to clipboard

split view causes trailing space fixes to stop working

Open prabashn opened this issue 2 years ago • 1 comments

If you open the same file more than once in split view, the plugin seems to stop working.

repro steps:

  1. open a TS file (for example)
  2. open the same file in #1 using split view mode
  3. introduce a trailing space in the code
  4. save the file (making sure "fix on save" setting is enabled)

expected: The trailing space on the file should be fixed, and should reflect on both split view panes.

actual: the trailing space remains even after the save.

prabashn avatar May 26 '23 16:05 prabashn

Split view only affects the "trim on save" feature – running the trim command manually still works.

mhsmith avatar Jul 24 '24 15:07 mhsmith