code: function getDirectoryFragmentTextSpan(text, textStart) {
                  var index = text.lastIndexOf(ts.directorySeparator);
                  var offset = index !== -1 ? index + 1 : 0;
                  return { start: textStart + offset, length: text.length - offset };
              }
docs: Replace everything after the last directory seperator that appears