дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
perf(mid): resolve no-await-in-loop in five feature groups (#5774)
Clears the no-await-in-loop diagnostics in analysis, platform, project-tree, http-client and debugger and turns the rule on there. Independent directory walks (Reformat/cleanup targets, batches of 8; the result is sorted as before), Spring config reads (parsed in candidate order, so the first file with a value still wins) and Python package __init__.py creation now run in parallel; every other loop is intentionally sequential and carries a documented suppression. Co-authored-by: akbar1214 <[email protected]>
Цей коміт міститься в:
1 джерело
9ecef0ef0f
коміт
4a18d4d205
40 files changed
+142
-21
No files matched your search
@@ -213,6 +213,7 @@ export async function classModules(binaryName: string): Promise<string[]> {
|
||||
const configs = await call(commands.runConfigs());
|
||||
const modules = new Set<string>();
|
||||
for (const file of matches) {
|
||||
// oxlint-disable-next-line no-await-in-loop -- keep read errors in candidate order and hold only one source text at a time
|
||||
const text = await call(commands.fsReadText(file.path));
|
||||
const sourcePackage = /^\s*package\s+([\w.]+)\s*[;\r\n]/m.exec(text)?.[1] ?? "";
|
||||
if (sourcePackage === pkg) modules.add(jvmModuleDir(root ? relativePath(root, file.path) : file.relPath, configs));
|
||||
|
||||
Reference in new issue
Заблокувати користувача