mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 16:15:29 +00:00
Fix docstring of get_ignore_spec
This commit is contained in:
1 parent
fd08e79890
commit
2302df3ad0
1 file changed
+3
-8
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user