Class TaskSchemaUpdater

Implements

  • JsonSchemaContribution

Constructors

Properties

doValidate: undefined | ValidateFunction
inmemoryResources: InMemoryResources
onDidChangeTaskSchema: Event<void> = ...
onDidChangeTaskSchemaEmitter: Emitter<void> = ...
problemMatcherRegistry: ProblemMatcherRegistry
taskDefinitionRegistry: TaskDefinitionRegistry
taskServer: TaskServer
update: ((...arguments) => Promise<void>) = ...

Type declaration

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

      • Rest ...arguments: []

      Returns Promise<void>

uri: URI = ...
workspaceService: WorkspaceService

Methods

  • 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

  • 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