Closed Moosieus closed 6 months ago
Test at projects/lexical_shared/test/lexical/document/path_test.exs:118
is failing, although vscode's working exactly as intended with the patch in place.
Might need to use a different test case since untitled:*
is explicitly handled now, or just forego it entirely.
Also, tests failed, though they look spurious now, in light of the current revelations, though the failures are extremely specific.
I'm actually a bit worried about this change now; we use paths all over the place, and untitled:Untitled-1
is most definitely not a path. What are the ramifications of doing this?
Hard for me to say what the ramifications are - here's what I got though:
document.path
a misnomer since values could be untitled:Untitled-N
now.Everything else seems to work as anticipated.
the misnomer is making me worried, we've assumed paths are... paths, and can be operated on with the Path module
I'm going to land this, and we'll see how it goes.
Pursuant to #641
untitled:Untitled-N
URIs. Previously they were errantly being treated as file path URIs.is_binary
guards toDocument.Path
functions. This makes for slightly more explicit errors.