mattsawyer77 / atom-perforce

Perforce integration for the Atom editor
MIT License
18 stars 12 forks source link

Fix tree decoration based on file status on Windows #45

Closed richardthe3rd closed 8 years ago

richardthe3rd commented 8 years ago

Crux of the problem is that the data-path of tree nodes has the file path with Windows path separators but the fileinfo.localpath has a mix of Windows and posix/perforce separators.

  1. Use path.join() in transformClientPathToLocalPath to combine clientRoot and the relative path extracted from the client path.
  2. In markOpenFiles escape any backslashes in the selector passed into querySelectorsAll.
mattsawyer77 commented 8 years ago

thanks for your help.