Skip to content

Commit ae44d1b

Browse files
committed
Update workspace directory and add file exclusion check in MainProcess
1 parent 320e1b1 commit ae44d1b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Core/Compiler/mainprocess.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,18 @@ def compile(
263263
self.log_message.emit("warning", "Compilation already in progress")
264264
return False
265265

266+
# Mettre à jour le workspace si fourni
267+
if workspace_dir and workspace_dir != self._workspace_dir:
268+
self._workspace_dir = workspace_dir
269+
270+
# Vérifier l'exclusion avant de lancer la compilation
271+
if file_path and self._workspace_dir:
272+
if self.should_exclude(file_path):
273+
self.log_message.emit(
274+
"warning", f"File excluded by ARK config: {file_path}"
275+
)
276+
return False
277+
266278
# Déterminer le répertoire de travail
267279
working_dir = workspace_dir or self._workspace_dir
268280
if file_path:

0 commit comments

Comments
 (0)