Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/workbench/contrib/tasks/common/tasks.ts')
-rw-r--r--src/vs/workbench/contrib/tasks/common/tasks.ts35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/vs/workbench/contrib/tasks/common/tasks.ts b/src/vs/workbench/contrib/tasks/common/tasks.ts
index 1b52c33d02a..5877beb6437 100644
--- a/src/vs/workbench/contrib/tasks/common/tasks.ts
+++ b/src/vs/workbench/contrib/tasks/common/tasks.ts
@@ -549,6 +549,11 @@ export interface IConfigurationProperties {
* The icon for this task in the terminal tabs list
*/
icon?: { id?: string; color?: string };
+
+ /**
+ * Do not show this task in the run task quickpick
+ */
+ hide?: boolean;
}
export enum RunOnOptions {
@@ -914,6 +919,11 @@ export class ContributedTask extends CommonTask {
*/
icon: { id?: string; color?: string } | undefined;
+ /**
+ * Don't show the task in the run task quickpick
+ */
+ hide?: boolean;
+
public constructor(id: string, source: IExtensionTaskSource, label: string, type: string | undefined, defines: KeyedTaskIdentifier,
command: ICommandConfiguration, hasDefinedMatchers: boolean, runOptions: IRunOptions,
configurationProperties: IConfigurationProperties) {
@@ -922,6 +932,7 @@ export class ContributedTask extends CommonTask {
this.hasDefinedMatchers = hasDefinedMatchers;
this.command = command;
this.icon = configurationProperties.icon;
+ this.hide = configurationProperties.hide;
}
public override clone(): ContributedTask {
@@ -1179,6 +1190,30 @@ export namespace KeyedTaskIdentifier {
}
}
+export const enum TaskSettingId {
+ AutoDetect = 'task.autoDetect',
+ SaveBeforeRun = 'task.saveBeforeRun',
+ ShowDecorations = 'task.showDecorations',
+ ProblemMatchersNeverPrompt = 'task.problemMatchers.neverPrompt',
+ SlowProviderWarning = 'task.slowProviderWarning',
+ QuickOpenHistory = 'task.quickOpen.history',
+ QuickOpenDetail = 'task.quickOpen.detail',
+ QuickOpenSkip = 'task.quickOpen.skip',
+ QuickOpenShowAll = 'task.quickOpen.showAll',
+ AllowAutomaticTasks = 'task.allowAutomaticTasks'
+}
+
+export const enum TasksSchemaProperties {
+ Tasks = 'tasks',
+ SuppressTaskName = 'tasks.suppressTaskName',
+ Windows = 'tasks.windows',
+ Osx = 'tasks.osx',
+ Linux = 'tasks.linux',
+ ShowOutput = 'tasks.showOutput',
+ IsShellCommand = 'tasks.isShellCommand',
+ ServiceTestSetting = 'tasks.service.testSetting',
+}
+
export namespace TaskDefinition {
export function createTaskIdentifier(external: ITaskIdentifier, reporter: { error(message: string): void }): KeyedTaskIdentifier | undefined {
const definition = TaskDefinitionRegistry.get(external.type);