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.
Use path.join() in transformClientPathToLocalPath to combine clientRoot and the relative path extracted from the client path.
In markOpenFiles escape any backslashes in the selector passed into querySelectorsAll.
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.
path.join()
intransformClientPathToLocalPath
to combine clientRoot and the relative path extracted from the client path.markOpenFiles
escape any backslashes in the selector passed intoquerySelectorsAll
.