Closed jordanbreen28 closed 2 months ago
Attention: Patch coverage is 0%
with 3 lines
in your changes are missing coverage. Please review.
Project coverage is 11.69%. Comparing base (
2a7db14
) to head (fb4bc1d
).
Files | Patch % | Lines |
---|---|---|
...pet-languageserver/manifest/validation_provider.rb | 0.00% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary
This PR wraps the
Dir.chdir
call in thevalidation_provider.rb
file within a$PuppetParserMutex.synchronize
block.Before this change, the
Dir.chdir
method was called without synchronization, which could lead to conflicts if anotherchdir
block was in progress.This change prevents the error "(puppet/fixDiagnosticErrors) conflicting chdir during another chdir block" by ensuring that the
Dir.chdir
call is only executed by one thread at a time.Additional Context
Add any additional context about the problem here.
Related Issues (if any)
Mention any related issues or pull requests.
Checklist