fix: skip unknown status and priority on edit

This commit is contained in:
2026-07-19 07:10:30 +05:00
parent 1382abc26d
commit ad982eb1cc
4 changed files with 26 additions and 6 deletions
+9 -3
View File
@@ -1,4 +1,3 @@
import * as vscode from "vscode";
import { addProjectTag } from "@/commands/addProjectTag";
import { loadProjectConfig } from "@/commands/loadProjectConfig";
import { resolveTaskLocations } from "@/commands/resolveTaskLocations";
@@ -16,13 +15,16 @@ import {
TASK_LANGUAGE_ID,
} from "@/model/taskFile";
import { IConfigProvider, IFileSystem } from "@/ports";
import * as vscode from "vscode";
import { getGitUserName, yamlInlineScalar } from "./getGitUserName";
import { presentError } from "./presentError";
import { resolveTaskFolderForPath } from "./resolveTaskFolder";
import {
TASK_PRIORITY_LABELS,
TASK_PRIORITY_META,
TASK_PRIORITY_ORDER,
TASK_STATUS_LABELS,
TASK_STATUS_META,
TASK_STATUS_ORDER,
} from "./taskLabels";
@@ -115,7 +117,9 @@ export async function runEditTaskStatus(uriArg?: string): Promise<void> {
}
const picked = await vscode.window.showQuickPick(
TASK_STATUS_ORDER.map((status) => ({
TASK_STATUS_ORDER.filter(
(status) => !TASK_STATUS_META[status].fallback,
).map((status) => ({
label: TASK_STATUS_LABELS[status],
description: status,
status,
@@ -137,7 +141,9 @@ export async function runEditTaskPriority(uriArg?: string): Promise<void> {
}
const picked = await vscode.window.showQuickPick(
TASK_PRIORITY_ORDER.map((priority) => ({
TASK_PRIORITY_ORDER.filter(
(priority) => !TASK_PRIORITY_META[priority].fallback,
).map((priority) => ({
label: TASK_PRIORITY_LABELS[priority],
description: priority,
priority,