From 32bd8c8593e0711005f31b07f7e6f32bd2630c80 Mon Sep 17 00:00:00 2001 From: Orkun Tokdemir Date: Thu, 28 Nov 2024 16:53:45 +0100 Subject: qt-core: Add build dir with build type to recommended settings Since 3968bcb7b59e522f328496cc56b427fde75c79d2 switched the default generator from `Ninja Multi-Config` to `Ninja`, it is useful to have the build directory with the build type in the recommended settings. Change-Id: Id7d192340a390834d38f1e399674f22fc4b71895 Reviewed-by: Marcus Tillmanns --- qt-core/src/recommended-settings.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qt-core/src/recommended-settings.ts b/qt-core/src/recommended-settings.ts index 573239c..49a16df 100644 --- a/qt-core/src/recommended-settings.ts +++ b/qt-core/src/recommended-settings.ts @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only import * as vscode from 'vscode'; +import * as path from 'path'; import { isMultiWorkspace, telemetry } from 'qt-lib'; import { EXTENSION_ID } from '@/constants'; @@ -19,6 +20,11 @@ export function registerSetRecommendedSettingsCommand() { extensionId: 'cmake', setting: 'options.statusBarVisibility', value: 'visible' + }, + { + extensionId: 'cmake', + setting: 'buildDirectory', + value: `\${workspaceFolder}${path.sep}builds${path.sep}\${buildKit}${path.sep}\${buildType}` } ]; -- cgit v1.2.3