Skip to content

Commit 4f4ad31

Browse files
committed
refactor(langserver): remove unused maxProjectFileCount setting
1 parent 5eca367 commit 4f4ad31

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -731,12 +731,6 @@
731731
"description": "Specifies glob patterns for excluding files and folders from analysing by the language server.",
732732
"scope": "resource"
733733
},
734-
"robotcode.analysis.maxProjectFileCount": {
735-
"type": "integer",
736-
"default": 1000,
737-
"description": "Specifies the maximum number of files for which diagnostics are reported for the whole project/workspace folder. Specifies 0 or less to disable the limit completely.",
738-
"scope": "resource"
739-
},
740734
"robotcode.analysis.referencesCodeLens": {
741735
"type": "boolean",
742736
"default": false,

packages/language_server/src/robotcode/language_server/robotframework/configuration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ class Cache(ConfigBase):
100100
class AnalysisConfig(ConfigBase):
101101
diagnostic_mode: DiagnosticsMode = DiagnosticsMode.OPENFILESONLY
102102
progress_mode: AnalysisProgressMode = AnalysisProgressMode.OFF
103-
max_project_file_count: int = 5000
104103
references_code_lens: bool = False
105104
find_unused_references: bool = False
106105
cache: Cache = field(default_factory=Cache)

packages/language_server/src/robotcode/language_server/robotframework/parts/robot_workspace.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ def load_workspace_documents(self, sender: Any) -> List[WorkspaceDocumentsResult
132132
if canceled:
133133
return []
134134

135-
if config.analysis.max_project_file_count > 0 and len(files) > config.analysis.max_project_file_count:
136-
result = result[: config.analysis.max_project_file_count]
137-
138135
return result
139136
finally:
140137
self._logger.info(lambda: f"Workspace loaded {len(result)} documents in {time.monotonic() - start}s")

0 commit comments

Comments
 (0)