From 1775644f2bbf21e5db8f78e99fdd46eaf66aa3ca Mon Sep 17 00:00:00 2001 From: Tony <68118705+Legend-Master@users.noreply.github.com> Date: Wed, 7 May 2025 16:52:18 +0800 Subject: [PATCH] Add cwd to vscode windows debug task example (#3286) --- src/content/docs/develop/Debug/vscode.mdx | 5 ++++- src/content/docs/ja/develop/Debug/vscode.mdx | 5 ++++- src/content/docs/zh-cn/develop/Debug/vscode.mdx | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/content/docs/develop/Debug/vscode.mdx b/src/content/docs/develop/Debug/vscode.mdx index 016bf4241..400f640f2 100644 --- a/src/content/docs/develop/Debug/vscode.mdx +++ b/src/content/docs/develop/Debug/vscode.mdx @@ -130,7 +130,10 @@ Here is an example of running a dev server (equivalent of `beforeDevCommand`) an { "label": "build:debug", "type": "cargo", - "command": "build" + "command": "build", + "options": { + "cwd": "${workspaceRoot}/src-tauri" + } }, { "label": "ui:dev", diff --git a/src/content/docs/ja/develop/Debug/vscode.mdx b/src/content/docs/ja/develop/Debug/vscode.mdx index e41583c29..fc066fe59 100644 --- a/src/content/docs/ja/develop/Debug/vscode.mdx +++ b/src/content/docs/ja/develop/Debug/vscode.mdx @@ -130,7 +130,10 @@ Tauri CLI は使用されないため、CLI 固有の機能は**実行されな { "label": "build:debug", "type": "cargo", - "command": "build" + "command": "build", + "options": { + "cwd": "${workspaceRoot}/src-tauri" + } }, { "label": "ui:dev", diff --git a/src/content/docs/zh-cn/develop/Debug/vscode.mdx b/src/content/docs/zh-cn/develop/Debug/vscode.mdx index fd0c92f87..9989723d2 100644 --- a/src/content/docs/zh-cn/develop/Debug/vscode.mdx +++ b/src/content/docs/zh-cn/develop/Debug/vscode.mdx @@ -129,7 +129,10 @@ Visual Studio Windows Debugger 是一个仅适用于 Windows 的调试器,通 { "label": "build:debug", "type": "cargo", - "command": "build" + "command": "build", + "options": { + "cwd": "${workspaceRoot}/src-tauri" + } }, { "label": "ui:dev",