
import { localize } from '../../../../nls.js';
import { RawContextKey, ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';

const CustomExecutionSupportedContext = ( new RawContextKey("customExecutionSupported", false, ( localize(
    11991,
    "Whether CustomExecution tasks are supported. Consider using in the when clause of a 'taskDefinition' contribution."
))));
const ShellExecutionSupportedContext = ( new RawContextKey("shellExecutionSupported", false, ( localize(
    11992,
    "Whether ShellExecution tasks are supported. Consider using in the when clause of a 'taskDefinition' contribution."
))));
const TaskCommandsRegistered = ( new RawContextKey("taskCommandsRegistered", false, ( localize(11993, "Whether the task commands have been registered yet"))));
const ProcessExecutionSupportedContext = ( new RawContextKey("processExecutionSupported", false, ( localize(
    11994,
    "Whether ProcessExecution tasks are supported. Consider using in the when clause of a 'taskDefinition' contribution."
))));
const ServerlessWebContext = ( new RawContextKey("serverlessWebContext", false, ( localize(11995, "True when in the web with no remote authority."))));
const TasksAvailableContext = ( new RawContextKey("tasksAvailable", false, ( localize(11996, "Whether any tasks are available in the workspace."))));
const TaskExecutionSupportedContext = ( ContextKeyExpr.or(( ContextKeyExpr.and(ShellExecutionSupportedContext, ProcessExecutionSupportedContext)), CustomExecutionSupportedContext));

export { CustomExecutionSupportedContext, ProcessExecutionSupportedContext, ServerlessWebContext, ShellExecutionSupportedContext, TaskCommandsRegistered, TaskExecutionSupportedContext, TasksAvailableContext };
