Merge pull request #1322 from pikasTech/fix/2302-mdtodo-launch-source-field

fix: ignore command source in MDTODO launch
This commit is contained in:
Lyon
2026-06-30 21:28:46 +08:00
committed by GitHub
@@ -4127,7 +4127,7 @@ async function launchWorkbenchFromTask(command) {
ensureProjectManagementCommand(commandType);
const beforeUrl = currentPageUrl();
const initialProject = await projectManagementCommandSnapshot({ includeRaw: true });
const requestedSourceId = commandValue(command, ["sourceId", "source"]);
const requestedSourceId = commandValue(command, ["sourceId", "mdtodoSourceId"]);
const requestedFileRef = commandValue(command, ["fileRef"]);
const requestedFilename = commandValue(command, ["filename", "fileName"]);
const requestedTaskRef = typeof command.taskRef === "string" && command.taskRef.trim() ? command.taskRef.trim() : null;