Compile commands file watchers are leaked without being closed #12946
Labels
bug
Feature: Compile Commands
help wanted
Can be fixed in the public (open source) repo.
Language Service
Milestone
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
When using
compileCommands
in a configuration, deleting the json file causes the fallback functioncheckCompileCommands()
insrc\LanguageServer\configurations.ts
to dispose the file watchers without closing them.Steps to reproduce:
compileCommands
configuration with a path to acompile_commands.json
.touch
it or compile a CMake project which updates it)CppProperties.compileCommandsFile
is updated with a value.checkCompileCommands()
will enter the error case and leak the file watchers.Expected behavior:
checkCompileCommands()
should close the file watchers before disposing.Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: