Fix docstring of get_ignore_spec

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2025-07-10 23:00:01 +02:00
1 parent fd08e79890
commit 2302df3ad0
1 file changed
+3 -8
+3 -8
View File
@@ -76,14 +76,9 @@ class Project:
return abs_path.read_text(encoding=self.project_config.encoding)
def get_ignore_spec(self) -> pathspec.PathSpec:
"""Returns the pathspec matcher for the paths that were configured to be ignored through
the multilspy config.
This is is a subset of the full language-specific ignore spec that determines
which files are relevant for the language server.
This matcher is useful for operations outside of the language server,
such as when searching for relevant non-language files in the project.
"""
:return: the pathspec matcher for the paths that were configured to be ignored,
either explicitly or implicitly through .gitignore files.
"""
return self._ignore_spec