Closed RomneyDa closed 1 week ago
Current pattern is getCurrentFile -> readCurrentFile
The problem is if it's untitled there's no way to deduce that reliably from a single path
Also in every single use case, getCurrentFile read the file contents
So I just made getCurrent file return the file contents
Adjusted some types here and there
isUntitled is unused at the moment
isUntitled
dev
main
Fixes https://github.com/continuedev/continue/issues/2798 https://github.com/continuedev/continue/issues/1226 seems related but as far as I can tell it's already been fixed
Description
Current pattern is getCurrentFile -> readCurrentFile
The problem is if it's untitled there's no way to deduce that reliably from a single path
Also in every single use case, getCurrentFile read the file contents
So I just made getCurrent file return the file contents
Adjusted some types here and there
isUntitled
is unused at the momentChecklist
dev
, rather thanmain
Fixes https://github.com/continuedev/continue/issues/2798 https://github.com/continuedev/continue/issues/1226 seems related but as far as I can tell it's already been fixed