Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TaskSchemaUpdater

Hierarchy

  • TaskSchemaUpdater

Implements

  • JsonSchemaContribution

Index

Constructors

constructor

Properties

Protected doValidate

doValidate: undefined | ValidateFunction

Protected Readonly inmemoryResources

inmemoryResources: InMemoryResources

Readonly onDidChangeTaskSchema

onDidChangeTaskSchema: Event<void> = ...

Protected Readonly onDidChangeTaskSchemaEmitter

onDidChangeTaskSchemaEmitter: Emitter<void> = ...

Protected Readonly problemMatcherRegistry

problemMatcherRegistry: ProblemMatcherRegistry

Protected Readonly taskDefinitionRegistry

taskDefinitionRegistry: TaskDefinitionRegistry

Protected Readonly taskServer

taskServer: TaskServer

Readonly update

update: (...arguments: []) => Promise<void> = ...

Type declaration

    • (...arguments: []): Promise<void>
    • Parameters

      • Rest ...arguments: []

      Returns Promise<void>

Protected Readonly uri

uri: default = ...

Protected Readonly workspaceService

workspaceService: WorkspaceService

Methods

addSubschema

  • addSubschema(schema: IJSONSchema): void
  • Adds given task schema to taskConfigurationSchema as oneOf subschema. Replaces existed subschema by given schema if the corresponding $id properties are equal.

    Note: please provide $id property for subschema to have ability remove/replace it.

    Parameters

    • schema: IJSONSchema

      subschema for adding to taskConfigurationSchema

    Returns void

Protected doRemoveSubschema

  • doRemoveSubschema(arg: string): boolean
  • Removes task subschema from customSchemas, use update() to apply the changes for taskConfigurationSchema.

    Parameters

    • arg: string

      $id property of subschema

    Returns boolean

    true if subschema was removed, false otherwise

Protected doUpdate

  • doUpdate(): void

getRegisteredTaskTypes

  • getRegisteredTaskTypes(): Promise<string[]>

getTaskSchema

  • getTaskSchema(): IJSONSchema

Protected init

  • init(): void

registerSchemas

  • registerSchemas(context: JsonSchemaRegisterContext): void

removeSubschema

  • removeSubschema(arg: string): void

Private updateProblemMatcherNames

  • updateProblemMatcherNames(): void

Private updateSchemasForRegisteredTasks

  • updateSchemasForRegisteredTasks(): void

Private updateSupportedTaskTypes

  • updateSupportedTaskTypes(): Promise<void>

validate

  • validate(data: any): boolean