infracost / vscode-infracost

See cost estimates for Terraform right in your editor💰📉

Home Page:https://www.infracost.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extension fails to index new files

hugorut opened this issue · comments

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)