From 28746d53630b74bba10d633f1b6f346ab845c438 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 23 Jul 2026 09:03:46 +0200 Subject: [PATCH] Remove auto-generation of .kateworkspace Auto-generating .kateworkspace in detectWorkspace() was causing false positives: it would create the marker in unrelated parent directories, then detect them as workspaces on subsequent runs. The .kateworkspace file should only be created explicitly via Create Workspace. --- gitplusplus.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gitplusplus.cpp b/gitplusplus.cpp index 324cca9..95f7d26 100644 --- a/gitplusplus.cpp +++ b/gitplusplus.cpp @@ -2333,16 +2333,6 @@ void GitPlusPlusView::detectWorkspace() m_workspaceRepos = workspaceRepoPaths(); } - // Auto-generate .kateworkspace if missing - wsFile = m_workspaceDir + QStringLiteral("/.kateworkspace"); - if (!QFileInfo::exists(wsFile)) { - QSettings ws(wsFile, QSettings::IniFormat); - ws.beginGroup(QStringLiteral("workspace")); - ws.setValue(QStringLiteral("source"), QStringLiteral(".")); - ws.endGroup(); - ws.sync(); - } - // Auto-generate .kateproject in each repo subdir that lacks one for (const auto &repoPath : qAsConst(m_workspaceRepos)) { QString kateProjectFile = repoPath + QStringLiteral("/.kateproject");