Skip to content

Path separators are mixed when diffing files in subfolders #14

@keith-hall

Description

@keith-hall

When diffing an override that is contained within a subfolder of a package, the diff header mixes path separators.

--- Installed Packages\OverrideAudit\messages/install.txt   2017-04-04 08:20:16
+++ Packages\OverrideAudit\messages/install.txt 2017-04-04 09:07:01
@@ -1,5 +1,7 @@
 OverrideAudit
 =============
+
+© OdatNurd 2017 
 OverrideAudit helps you keep track of all of your package overrides, easily
 allowing you to see what overrides are in place, how they're different from the

Steps to reproduce:

  1. Open Command Palette
  2. Select PackageResourceViewer: Open Resource
  3. Select OverrideAudit
  4. Select messages
  5. Select install.txt
  6. Make a small change
  7. Save it
  8. Right click on the tab and select OverrideAudit: Diff Override
  9. Notice that the diff header shows a path with both / and \ style path separators

Expected behavior:

The diff would show only a single style of path separator. It might make sense to use the path separator that is used by the current OS. Although, saying that, I use Windows and would be quite happy to see Unix style path separators used exclusively, but probably I'm the odd one out there. ;)

Environment

Sublime Text build: 3125
OverrideAudit: v1.0.0
Operating System: Windows
Case Sensitive Filesystem: No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions