Skip to content

Commit

Permalink
Add .terragrunt-cache to skipDirNames (hashicorp#666)
Browse files Browse the repository at this point in the history
In a large terragrunt live repo with many distinct configurations having
many cross dependencies, there can exist a large number of
`.terragrunt-cache` directories, each of which can contain a large
number of modules. There seems to me no good reason for language server
to walk these directories. In some case I was experiencing several
seconds of `formatOnSave` latency. This change removes that issue for
me.
  • Loading branch information
davemac30 authored Oct 11, 2021
1 parent 99f1396 commit 73eb747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/terraform/module/walker.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var (
".idea": true,
".vscode": true,
"terraform.tfstate.d": true,
".terragrunt-cache": true,
}
)

Expand Down

0 comments on commit 73eb747

Please sign in to comment.