Extension fails to index new files
hugorut opened this issue · comments
Hugo Rut commented
Newly created files in a VSCode workspace will not show cost estimates as they are not part of the Infracost cache. We need to hook into VSCode hooks for onDidCreateFiles
and onDidRenameFiles
to pick up new files and file renames. On these actions, we should rebuild the Infracost project cache and associated files.
A workaround for users in the meantime is to close are reopen the workspace in VSCode (not great I know, hopefully this will be fixed ASAP)