robotcode-core 0.95.2__tar.gz → 0.96.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/PKG-INFO +1 -1
- robotcode_core-0.96.0/src/robotcode/core/__version__.py +1 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/documents_manager.py +1 -1
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/event.py +2 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/ignore_spec.py +4 -4
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/workspace.py +9 -3
- robotcode_core-0.95.2/src/robotcode/core/__version__.py +0 -1
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/.gitignore +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/LICENSE.txt +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/README.md +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/pyproject.toml +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/__init__.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/async_tools.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/concurrent.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/filewatcher.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/language.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/lsp/__init__.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/lsp/types.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/py.typed +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/text_document.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/types.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/uri.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/__init__.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/caching.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/cli.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/dataclasses.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/debugpy.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/glob_path.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/inspect.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/logging.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/net.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/path.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/process.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/safe_eval.py +0 -0
- {robotcode_core-0.95.2 → robotcode_core-0.96.0}/src/robotcode/core/utils/version.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.96.0"
|
|
@@ -28,7 +28,7 @@ class CantReadDocumentError(Exception):
|
|
|
28
28
|
class DocumentsManager:
|
|
29
29
|
_logger: Final = LoggingDescriptor()
|
|
30
30
|
|
|
31
|
-
def __init__(self, languages: List[LanguageDefinition]) -> None:
|
|
31
|
+
def __init__(self, languages: List[LanguageDefinition] = []) -> None:
|
|
32
32
|
self.languages = languages
|
|
33
33
|
|
|
34
34
|
self._documents: Dict[DocumentUri, TextDocument] = {}
|
|
@@ -19,7 +19,7 @@ class _HelperCache:
|
|
|
19
19
|
raise NotImplementedError
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class IgnoreRule(NamedTuple):
|
|
23
23
|
pattern: str
|
|
24
24
|
regex: "re.Pattern[str]"
|
|
25
25
|
negation: bool
|
|
@@ -75,7 +75,7 @@ class _IgnoreRule(NamedTuple):
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
class IgnoreSpec(_HelperCache):
|
|
78
|
-
def __init__(self, rules: Reversible[
|
|
78
|
+
def __init__(self, rules: Reversible[IgnoreRule]):
|
|
79
79
|
self.rules = rules
|
|
80
80
|
self.negation = any(r.negation for r in rules)
|
|
81
81
|
|
|
@@ -141,7 +141,7 @@ class IgnoreSpec(_HelperCache):
|
|
|
141
141
|
@classmethod
|
|
142
142
|
def _rule_from_pattern(
|
|
143
143
|
cls, pattern: str, base_path: PurePath, source: Optional[Tuple[str, int]] = None
|
|
144
|
-
) -> Optional[
|
|
144
|
+
) -> Optional[IgnoreRule]:
|
|
145
145
|
|
|
146
146
|
orig_pattern = pattern
|
|
147
147
|
|
|
@@ -189,7 +189,7 @@ class IgnoreSpec(_HelperCache):
|
|
|
189
189
|
i = i - 1
|
|
190
190
|
regex = cls._fnmatch_pathname_to_regex(pattern, directory_only, negation, anchored=bool(anchored))
|
|
191
191
|
|
|
192
|
-
return
|
|
192
|
+
return IgnoreRule(
|
|
193
193
|
pattern=orig_pattern,
|
|
194
194
|
regex=re.compile(regex),
|
|
195
195
|
negation=negation,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import functools
|
|
1
2
|
import threading
|
|
2
3
|
from typing import (
|
|
3
4
|
Any,
|
|
@@ -11,9 +12,10 @@ from typing import (
|
|
|
11
12
|
Union,
|
|
12
13
|
)
|
|
13
14
|
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
-
from
|
|
15
|
+
from .documents_manager import DocumentsManager
|
|
16
|
+
from .uri import Uri
|
|
17
|
+
from .utils.dataclasses import CamelSnakeMixin, from_dict
|
|
18
|
+
from .utils.path import path_is_relative_to
|
|
17
19
|
|
|
18
20
|
|
|
19
21
|
class WorkspaceFolder:
|
|
@@ -98,3 +100,7 @@ class Workspace:
|
|
|
98
100
|
return result[0]
|
|
99
101
|
|
|
100
102
|
return None
|
|
103
|
+
|
|
104
|
+
@functools.cached_property
|
|
105
|
+
def documents(self) -> DocumentsManager:
|
|
106
|
+
return DocumentsManager()
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.95.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|