sapling
sapling copied to clipboard
Module not processed correctly if directory name in path contains "."
Steps to reproduce the behavior:
A. Module not recognized as file
- Load a js/ts file containing a static import statement where the source path contains one or more directories using "." in its name
e.g.
import { foo, bar } from '../example.directory/module'; - The imported live bindings show up on the Sapling tree as having been exported from non-files.
B. Input file node flagged as error
- Load js/ts file into Sapling that has a path containing one or more directories "." with in its name.
- Root node is flagged with error coloring (but open file icon is functional).
Expected behavior
File path parsing module handles this edge case correctly and icons for opening source files show up on the relevant Sapling tree nodes with no errors.
Desktop:
- OS: Darwin Kernel Version 21.3.0; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101
- Version: v1.2.0